diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:14:58 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-03-17 17:54:21 +0100 |
commit | fc98e032106714f3f528eb43bd928b76883bb05d (patch) | |
tree | 89bb68d0da264a07f2cbcc780eccd98ff073a26b /main/ldb/fix-memory-leak-on-module-context.patch | |
parent | 92707c6a2fd1ee70b342d0339db319c05b0a3591 (diff) | |
download | aports-fc98e032106714f3f528eb43bd928b76883bb05d.tar.bz2 aports-fc98e032106714f3f528eb43bd928b76883bb05d.tar.xz |
main/ldb: fix memory leak on module context (ported from Fedora)
Diffstat (limited to 'main/ldb/fix-memory-leak-on-module-context.patch')
-rw-r--r-- | main/ldb/fix-memory-leak-on-module-context.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/ldb/fix-memory-leak-on-module-context.patch b/main/ldb/fix-memory-leak-on-module-context.patch new file mode 100644 index 0000000000..f8fcfff716 --- /dev/null +++ b/main/ldb/fix-memory-leak-on-module-context.patch @@ -0,0 +1,23 @@ +From 6c78935344a4f086fc209d0bd77feac0ea5894b3 Mon Sep 17 00:00:00 2001 +From: Lukas Slebodnik <lslebodn@fedoraproject.org> +Date: Sat, 21 Oct 2017 15:09:01 +0200 +Subject: [PATCH] ldb: Fix memory leak on module context + +Introduced in e8cdacc509016d9273d63faf334d9f827585c3eb + +Patch-Source: https://src.fedoraproject.org/rpms/libldb/blob/f28/f/0001-ldb-Fix-memory-leak-on-module-context.patch + +--- a/ldb_tdb/ldb_index.c ++++ b/ldb_tdb/ldb_index.c +@@ -516,9 +516,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; + } + |