summaryrefslogtreecommitdiff
path: root/src/heap/heap_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/heap/heap_method.c')
-rw-r--r--src/heap/heap_method.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/heap/heap_method.c b/src/heap/heap_method.c
index f938b5e7..2667f4fe 100644
--- a/src/heap/heap_method.c
+++ b/src/heap/heap_method.c
@@ -1,7 +1,7 @@
/*-
* See the file LICENSE for redistribution information.
*
- * Copyright (c) 2010, 2012 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2015 Oracle and/or its affiliates. All rights reserved.
*
* $Id$
*/
@@ -49,15 +49,11 @@ __heap_db_close(dbp)
DB *dbp;
{
HEAP *h;
- int ret;
-
- ret = 0;
- if ((h = dbp->heap_internal) == NULL)
- return (0);
-
- __os_free(dbp->env, h);
- dbp->heap_internal = NULL;
+ if ((h = dbp->heap_internal) != NULL) {
+ __os_free(dbp->env, h);
+ dbp->heap_internal = NULL;
+ }
return (0);
}