mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
Memory leak on error condition fixed by Kian Win <codegrunt@rubbercookie.com>.
Jeremy.
This commit is contained in:
parent
f7c980d614
commit
9dae1398b4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user