svn commit: samba r19297 - in
branches/SAMBA_4_0/source/scripting/ejs: .
tridge at samba.org
tridge at samba.org
Sun Oct 15 21:40:49 GMT 2006
Author: tridge
Date: 2006-10-15 21:40:49 +0000 (Sun, 15 Oct 2006)
New Revision: 19297
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19297
Log:
fixed a leak in the ejs ldb interface
Modified:
branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c
Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c
===================================================================
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c 2006-10-15 21:31:58 UTC (rev 19296)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_ldb.c 2006-10-15 21:40:49 UTC (rev 19297)
@@ -60,7 +60,7 @@
TALLOC_CTX *tmp_ctx = talloc_new(mprMemCtx());
struct ldb_context *ldb;
int ret;
- struct ldb_result *res;
+ struct ldb_result *res=NULL;
/* validate arguments */
if (argc < 1 || argc > 4) {
@@ -112,7 +112,7 @@
} else {
mpr_Return(eid, mprLdbArray(ldb, res->msgs, res->count, "ldb_message"));
}
-
+ talloc_free(res);
talloc_free(tmp_ctx);
return 0;
More information about the samba-cvs
mailing list