git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7bdd30
)
pyldb: fix memory leak in py_ldb_search()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 21 Jan 2016 23:05:09 +0000
(
00:05
+0100)
committer
Garming Sam
<garming@samba.org>
Wed, 17 Feb 2016 02:43:22 +0000
(
03:43
+0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/pyldb.c
patch
|
blob
|
history
diff --git
a/lib/ldb/pyldb.c
b/lib/ldb/pyldb.c
index 8c3162ab0016aea36a56669ef5845942afeab4f8..dcd6cc5c370cd0b784a9e29b26c86469cab03f55 100644
(file)
--- a/
lib/ldb/pyldb.c
+++ b/
lib/ldb/pyldb.c
@@
-1807,7
+1807,7
@@
static PyObject *py_ldb_search(PyLdbObject *self, PyObject *args, PyObject *kwar
if (py_base == Py_None) {
base = ldb_get_default_basedn(ldb_ctx);
} else {
- if (!pyldb_Object_AsDn(
ldb
_ctx, py_base, ldb_ctx, &base)) {
+ if (!pyldb_Object_AsDn(
mem
_ctx, py_base, ldb_ctx, &base)) {
talloc_free(mem_ctx);
return NULL;
}