diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
---|---|---|
committer | <> | 2015-03-17 16:26:24 +0000 |
commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /src/heap/heap_method.c | |
parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
download | berkeleydb-master.tar.gz |
Diffstat (limited to 'src/heap/heap_method.c')
-rw-r--r-- | src/heap/heap_method.c | 14 |
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); } |