svn commit: samba r1696 - trunk/source/libsmb

vlendec at samba.org vlendec at samba.org
Tue Aug 10 15:12:09 GMT 2004


Author: vlendec
Date: 2004-08-10 15:12:09 +0000 (Tue, 10 Aug 2004)
New Revision: 1696
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1696&nolog=1
Log:
Fix memleak
Modified:
   trunk/source/libsmb/asn1.c

Changeset:
Modified: trunk/source/libsmb/asn1.c
===================================================================
--- trunk/source/libsmb/asn1.c	2004-08-10 14:58:31 UTC (rev 1695)
+++ trunk/source/libsmb/asn1.c	2004-08-10 15:12:09 UTC (rev 1696)
@@ -389,7 +389,9 @@
 	if (!asn1_start_tag(&data, tag))
 		return False;
 	*result = asn1_tag_remaining(&data)+data.ofs;
-	asn1_end_tag(&data);
+	/* We can't use asn1_end_tag here, as we did not consume the complete
+	 * tag, so asn1_end_tag would flag an error and not free nesting */
+	free(data.nesting);
 	return True;
 }
 



More information about the samba-cvs mailing list