svn commit: samba r21421 - in
branches/SAMBA_4_0/source/torture/local: .
vlendec at samba.org
vlendec at samba.org
Sun Feb 18 11:11:57 GMT 2007
Author: vlendec
Date: 2007-02-18 11:11:57 +0000 (Sun, 18 Feb 2007)
New Revision: 21421
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21421
Log:
Fix a memleak. This made tdb look considerably worse than necessary.
Volker
Modified:
branches/SAMBA_4_0/source/torture/local/dbspeed.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/dbspeed.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/dbspeed.c 2007-02-18 02:50:52 UTC (rev 21420)
+++ branches/SAMBA_4_0/source/torture/local/dbspeed.c 2007-02-18 11:11:57 UTC (rev 21421)
@@ -96,6 +96,7 @@
key.dptr = (uint8_t *)talloc_asprintf(tmp_ctx, "S-1-5-21-53173311-3623041448-2049097239-%u", i);
key.dsize = strlen((char *)key.dptr)+1;
data = tdb_fetch(tdbw->tdb, key);
+ talloc_free(key.dptr);
if (data.dptr == NULL) {
torture_result(torture, TORTURE_FAIL, "Failed to fetch SID %d\n", i);
goto failed;
@@ -104,6 +105,7 @@
key.dptr = (uint8_t *)talloc_asprintf(tmp_ctx, "UID %u", i);
key.dsize = strlen((char *)key.dptr)+1;
data = tdb_fetch(tdbw->tdb, key);
+ talloc_free(key.dptr);
if (data.dptr == NULL) {
torture_result(torture, TORTURE_FAIL, "Failed to fetch UID %d\n", i);
goto failed;
More information about the samba-cvs
mailing list