git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21d3aa8
)
s4-ldif: Fix memory leek in ldb_ldif_write()
author
Kamen Mazdrashki
<kamen.mazdrashki@postpath.com>
Sat, 5 Dec 2009 20:49:59 +0000
(22:49 +0200)
committer
Simo Sorce
<idra@samba.org>
Sat, 5 Dec 2009 21:57:40 +0000
(16:57 -0500)
source4/lib/ldb/common/ldb_ldif.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_ldif.c
b/source4/lib/ldb/common/ldb_ldif.c
index b7ab7300b2508347005e5e14231321507a64c2c2..888761e67bdf7fbf5c5bf72bfb7fa23e626013eb 100644
(file)
--- a/
source4/lib/ldb/common/ldb_ldif.c
+++ b/
source4/lib/ldb/common/ldb_ldif.c
@@
-373,6
+373,8
@@
int ldb_ldif_write(struct ldb_context *ldb,
ret = fprintf_fn(private_data,"\n");
CHECK_RET;
+ talloc_free(mem_ctx);
+
return total;
}