Update of /cvsroot/monetdb/sql/src/backends/monet5/merovingian
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv8528
Modified Files:
Tag: Nov2009
control.c
Log Message:
Free buf when we're done with it.
Found by Coverity.
Index: control.c
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/control.c,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -d -r1.6 -r1.6.2.1
--- control.c 23 Sep 2009 12:41:02 -0000 1.6
+++ control.c 2 Dec 2009 09:14:48 -0000 1.6.2.1
@@ -114,6 +114,7 @@
buf = control_hash(pass, buf);
len = snprintf(sbuf, sizeof(sbuf), "%s\n", buf);
+ free(buf);
send(sock, sbuf, len, 0);
if ((len = recv(sock, sbuf, sizeof(sbuf), 0)) <= 0)
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins