diff options
author | Lukas Slebodnik <lslebodn@fedoraproject.org> | 2017-10-21 15:09:01 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-06-26 09:19:16 +0200 |
commit | 1fb72464150bb64effa79a2c07b83f7167e1b75b (patch) | |
tree | c20a7df7a7f893808167b78873a6b297031ba791 /lib/ldb | |
parent | b4331a3a9e1ceb1765a4b6a4ddeae4971b8a41f1 (diff) | |
download | samba-1fb72464150bb64effa79a2c07b83f7167e1b75b.tar.gz |
ldb: Fix memory leak on module context
Introduced in e8cdacc509016d9273d63faf334d9f827585c3eb
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13459
Signed-off-by: Lukas Slebodnik <lslebodn@fedoraproject.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Jun 1 11:10:24 CEST 2018 on sn-devel-144
(cherry picked from commit d161aa3522576545d269208426bb0014ee2ab35f)
Diffstat (limited to 'lib/ldb')
-rw-r--r-- | lib/ldb/ldb_tdb/ldb_index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_index.c b/lib/ldb/ldb_tdb/ldb_index.c index 251f6295f54..290d9b6482b 100644 --- a/lib/ldb/ldb_tdb/ldb_index.c +++ b/lib/ldb/ldb_tdb/ldb_index.c @@ -523,9 +523,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; } |