Update of /cvsroot/monetdb/pathfinder/runtime
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6458
Modified Files:
Tag: Nov2009
shttpd.c
Log Message:
Free in case of error.
Found by Coverity.
Index: shttpd.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/shttpd.c,v
retrieving revision 1.37.12.1
retrieving revision 1.37.12.2
diff -u -d -r1.37.12.1 -r1.37.12.2
--- shttpd.c 23 Dec 2009 15:19:36 -0000 1.37.12.1
+++ shttpd.c 23 Dec 2009 15:22:07 -0000 1.37.12.2
@@ -564,8 +564,10 @@
}
/* Return if not all POST data buffered */
- if (c->nposted < c->cclength || c->cclength == 0)
+ if (c->nposted < c->cclength || c->cclength == 0) {
+ free(arg);
return;
+ }
/* Null-terminate query data */
c->query[c->cclength] = '\0';
------------------------------------------------------------------------------
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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins