git.samba.org
/
obnox
/
samba
/
samba-obnox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2afc5b7
)
mapping_tdb: add missing talloc_free in error path
author
David Disseldorp
<ddiss@samba.org>
Mon, 3 Nov 2014 13:33:06 +0000
(14:33 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Mon, 10 Nov 2014 15:36:03 +0000
(16:36 +0100)
Reported-by: Michael Croes <mycroes@gmail.com>
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/groupdb/mapping_tdb.c
patch
|
blob
|
history
diff --git
a/source3/groupdb/mapping_tdb.c
b/source3/groupdb/mapping_tdb.c
index ab79b687e16babe8ddfc87a7b0f4f2c54270608b..e793ef350016e31338c4060a96dde2ca86fac74c 100644
(file)
--- 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)) {