Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv19629

Modified Files:
      Tag: Nov2009
        sql_readline.mx 
Log Message:
Free buffer.
Found by Coverity.


Index: sql_readline.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_readline.mx,v
retrieving revision 1.13.6.2
retrieving revision 1.13.6.3
diff -u -d -r1.13.6.2 -r1.13.6.3
--- sql_readline.mx     2 Dec 2009 09:07:08 -0000       1.13.6.2
+++ sql_readline.mx     23 Dec 2009 09:39:56 -0000      1.13.6.3
@@ -186,6 +186,7 @@
                        if (cntxt->fdin->buf == NULL) {
                                cntxt->fdin->len = 0;
                                cntxt->fdin->size = 0;
+                               free(buf);
                                return -1;
                        }
                        cntxt->fdin->len = len;


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to