svn commit: samba r2040 - branches/SAMBA_4_0/source/libcli/raw

tridge at samba.org tridge at samba.org
Wed Aug 25 02:07:53 GMT 2004


Author: tridge
Date: 2004-08-25 02:07:53 +0000 (Wed, 25 Aug 2004)
New Revision: 2040

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=2040&nolog=1

Log:
fixed a memory handling error in clisocket (caught with valgrind)






Modified:
   branches/SAMBA_4_0/source/libcli/raw/clisocket.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/clisocket.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/clisocket.c	2004-08-25 02:07:20 UTC (rev 2039)
+++ branches/SAMBA_4_0/source/libcli/raw/clisocket.c	2004-08-25 02:07:53 UTC (rev 2040)
@@ -173,9 +173,9 @@
 
 	if (ret) {
 		sock->hostname = talloc_steal(sock, name);
+	} else {
+		talloc_free(name);
 	}
 
-	talloc_destroy(name);
-
 	return ret;
 }



More information about the samba-cvs mailing list