git.samba.org
/
kai
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ldb: Fix memory leak on module context
[kai/samba-autobuild/.git]
/
lib
/
ldb
/
ldb_tdb
/
ldb_index.c
diff --git
a/lib/ldb/ldb_tdb/ldb_index.c
b/lib/ldb/ldb_tdb/ldb_index.c
index 7bd843effbe63bdb6491bcab35867f105418b32c..04ffbad65cdb88058abeb1a155c1faf2a9af4e82 100644
(file)
--- a/
lib/ldb/ldb_tdb/ldb_index.c
+++ b/
lib/ldb/ldb_tdb/ldb_index.c
@@
-612,9
+612,9
@@
static int ltdb_dn_list_store_full(struct ldb_module *module,
if (list->count == 0) {
ret = ltdb_delete_noindex(module, msg);
if (ret == LDB_ERR_NO_SUCH_OBJECT) {
- talloc_free(msg);
- return LDB_SUCCESS;
+ ret = LDB_SUCCESS;
}
+ talloc_free(msg);
return ret;
}