diff options
author | David Disseldorp <ddiss@samba.org> | 2014-11-03 14:33:06 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-11-10 16:36:03 +0100 |
commit | 6e86bd5dabf585643a176ee24a7064802576d555 (patch) | |
tree | 5b4c149e17d8fce89c32774de9ef9384137de0ad | |
parent | 2afc5b797826780c07e04ed153edc82f410668a2 (diff) | |
download | samba-6e86bd5dabf585643a176ee24a7064802576d555.tar.gz |
mapping_tdb: add missing talloc_free in error path
Reported-by: Michael Croes <mycroes@gmail.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index ab79b687e16..e793ef35001 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -69,6 +69,7 @@ static bool init_group_mapping(void) ldb_path = state_path("group_mapping.ldb"); if (ldb_path == NULL) { + talloc_free(tdb_path); return false; } if (file_exist(ldb_path) && !mapping_switch(ldb_path)) { |