1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

Memory leak on error condition fixed by Kian Win <codegrunt@rubbercookie.com>.

Jeremy.
(This used to be commit 9dae1398b45515e5b93de038ec18df297d73026d)
This commit is contained in:
Jeremy Allison 2002-02-27 17:48:45 +00:00
parent c72d16a105
commit b06749d73c

View File

@ -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;
}