diff options
author | Jeremy Allison <jra@samba.org> | 2002-02-27 17:48:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-02-27 17:48:45 +0000 |
commit | b06749d73cde4c65cbae8eb79fec01d7bcd3bbcf (patch) | |
tree | 09da79853ad96d306594c1bc86d2fb779edbdc25 /source3 | |
parent | c72d16a10504d9b26a616aef9d04b131739c8b90 (diff) | |
download | samba-b06749d73cde4c65cbae8eb79fec01d7bcd3bbcf.tar.gz samba-b06749d73cde4c65cbae8eb79fec01d7bcd3bbcf.tar.bz2 samba-b06749d73cde4c65cbae8eb79fec01d7bcd3bbcf.zip |
Memory leak on error condition fixed by Kian Win <codegrunt@rubbercookie.com>.
Jeremy.
(This used to be commit 9dae1398b45515e5b93de038ec18df297d73026d)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/tdb/tdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index 36b90ef6fc..ad67e9393e 100644 --- a/source3/tdb/tdb.c +++ b/source3/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; } |