svn commit: samba r11282 - in branches/SAMBA_4_0/source/torture/auth: .

abartlet at samba.org abartlet at samba.org
Tue Oct 25 02:26:11 GMT 2005


Author: abartlet
Date: 2005-10-25 02:26:10 +0000 (Tue, 25 Oct 2005)
New Revision: 11282

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11282

Log:
Fix memory leak in LOCAL-PAC test.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/torture/auth/pac.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/auth/pac.c
===================================================================
--- branches/SAMBA_4_0/source/torture/auth/pac.c	2005-10-24 21:10:53 UTC (rev 11281)
+++ branches/SAMBA_4_0/source/torture/auth/pac.c	2005-10-25 02:26:10 UTC (rev 11282)
@@ -360,7 +360,7 @@
 		tmp_blob.data = (uint8_t *)file_load(pac_file, &tmp_blob.length, mem_ctx);
 		printf("(saved test) Loaded pac of size %d from %s\n", tmp_blob.length, pac_file);
 	} else {
-		tmp_blob = data_blob(saved_pac, sizeof(saved_pac));
+		tmp_blob = data_blob_talloc(mem_ctx, saved_pac, sizeof(saved_pac));
 	}
 	
 	dump_data(10,tmp_blob.data,tmp_blob.length);



More information about the samba-cvs mailing list