Update of /cvsroot/monetdb/pathfinder/compiler/xmlimport
In directory
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22343/compiler/xmlimport
Modified Files:
Tag: M5XQ
xml2lalg_converters.c
Log Message:
propagated changes of Wednesday Dec 09 2009
from the XQFT branch to the M5XQ branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/09 - sjoerd: compiler/xmlimport/xml2lalg_converters.c,1.32.2.1
propagated changes of Wednesday Dec 09 2009
from the development trunk to the XQFT branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/09 - sjoerd: compiler/xmlimport/xml2lalg_converters.c,1.33
propagated changes of Monday Dec 07 2009 - Wednesday Dec 09 2009
from the Nov2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/07 - sjoerd: compiler/xmlimport/xml2lalg_converters.c,1.31.4.2
Fix memory leak.
Found by Coverity.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: xml2lalg_converters.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/xmlimport/xml2lalg_converters.c,v
retrieving revision 1.26.2.4
retrieving revision 1.26.2.5
diff -u -d -r1.26.2.4 -r1.26.2.5
--- xml2lalg_converters.c 5 Oct 2009 12:16:10 -0000 1.26.2.4
+++ xml2lalg_converters.c 9 Dec 2009 14:25:42 -0000 1.26.2.5
@@ -192,6 +192,7 @@
char *idString = NULL;
PFalg_col_t ori = col_NULL;
unsigned int length = 0;
+ PFalg_col_t rv;
if (PFstrUtils_beginsWith(s, "iter")) {
ori = col_iter;
@@ -219,9 +220,11 @@
idString = PFstrUtils_substring (s + length, s + strlen(s));
if (idString[0] == '0')
- return PFcol_new_fixed (ori, 0);
+ rv = PFcol_new_fixed (ori, 0);
else
- return PFcol_new_fixed (ori, atoi (idString));
+ rv = PFcol_new_fixed (ori, atoi (idString));
+ free(idString);
+ return rv;
}
/**
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins