projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80989f2
)
Fix memory leak on db4 cleanup.
author
Jonathan McDowell
<noodles@earth.li>
Thu, 14 Jul 2005 15:42:37 +0000
(15:42 +0000)
committer
Jonathan McDowell
<noodles@earth.li>
Thu, 14 Jul 2005 15:42:37 +0000
(15:42 +0000)
Make sure we cleanup our dbconns array when shutting down the db4 backend.
keydb_db4.c
patch
|
blob
|
history
diff --git
a/keydb_db4.c
b/keydb_db4.c
index 6d57cd312b938b76d46a5f29875122a0a18d3db1..1596e5b97f4c7f60167eebd1318c8322f130e4aa 100644
(file)
--- a/
keydb_db4.c
+++ b/
keydb_db4.c
@@
-270,6
+270,8
@@
void cleanupdb(void)
dbconns[i] = NULL;
}
}
+ free(dbconns);
+ dbconns = NULL;
dbenv->close(dbenv, 0);
dbenv = NULL;
}