summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-27 17:48:45 +0000
committerJeremy Allison <jra@samba.org>2002-02-27 17:48:45 +0000
commit9dae1398b45515e5b93de038ec18df297d73026d (patch)
treecd0ee22a8f99678de0deb3e3f0208fd18e1cfddc /source/tdb/tdb.c
parentf7c980d61439f42395a457a5b99b28f526cabe69 (diff)
downloadsamba-9dae1398b45515e5b93de038ec18df297d73026d.tar.gz
samba-9dae1398b45515e5b93de038ec18df297d73026d.tar.xz
samba-9dae1398b45515e5b93de038ec18df297d73026d.zip
Memory leak on error condition fixed by Kian Win <codegrunt@rubbercookie.com>.
Jeremy.
Diffstat (limited to 'source/tdb/tdb.c')
-rw-r--r--source/tdb/tdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c
index 36b90ef6fcd..ad67e9393e2 100644
--- a/source/tdb/tdb.c
+++ b/source/tdb/tdb.c
@@ -1562,6 +1562,7 @@ TDB_CONTEXT *tdb_open_ex(const char *name, int hash_size, int tdb_flags,
if (tdb->fd != -1)
close(tdb->fd);
SAFE_FREE(tdb->locked);
+ SAFE_FREE(tdb);
errno = save_errno;
return NULL;
}