Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10628/src/backends/monet5
Modified Files:
sql_readline.mx
Log Message:
propagated changes of Wednesday Dec 02 2009
from the Nov2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/02 - sjoerd: src/backends/monet5/sql_readline.mx,1.13.6.2
getConsoleInput returns a malloced buffer. We should free it when
we're done with it.
Found by Coverity.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: sql_readline.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_readline.mx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- sql_readline.mx 30 Oct 2009 21:42:10 -0000 1.14
+++ sql_readline.mx 2 Dec 2009 09:33:07 -0000 1.15
@@ -193,6 +193,7 @@
}
strcpy(cntxt->fdin->buf, buf);
cntxt->fdin->pos = 0;
+ free(buf);
return 1;
} else {
cntxt->fdin->eof = 1;
------------------------------------------------------------------------------
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