Update of /cvsroot/monetdb/pathfinder/modules/pftijah
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1673
Modified Files:
Tag: Nov2009
nexi.c
Log Message:
Removed unneeded cast.
Fix memory leak found by Coverity.
Index: nexi.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/nexi.c,v
retrieving revision 1.80
retrieving revision 1.80.8.1
diff -u -d -r1.80 -r1.80.8.1
--- nexi.c 2 Feb 2009 12:44:27 -0000 1.80
+++ nexi.c 7 Dec 2009 11:49:18 -0000 1.80.8.1
@@ -496,9 +496,9 @@
} else if (strcmp(optName, "returnNumber") == 0) {
// ignore, is handled by milprint_summer
} else if (strcmp(optName, "term-proximity") == 0) {
- qenv_prox_val = (char*)strdup(optVal);
+ qenv_prox_val = strdup(optVal);
} else if (strcmp(optName, "feedback-docs") == 0) {
- qenv_fb_val = (char*)strdup(optVal);
+ qenv_fb_val = strdup(optVal);
} else if (strcmp(optName, "newversion") == 0) {
} else {
stream_printf(GDKout,"TijahOptions: should handle:
%s=%s\n",optName,optVal);
@@ -511,6 +511,10 @@
BAT* fb =
pftu_lookup_bat(pftu_batname1("tj_%s_fragments",(char*)parserCtx->collection,0));
if ( ! fb ) {
stream_printf(GDKerr,"Error: cannot find fragments bat for
collection \"%s\".\n",parserCtx->collection);
+ if (qenv_prox_val)
+ free(qenv_prox_val);
+ if (qenv_vb_val)
+ free(qenv_fb_val);
return 0;
}
if ( BATcount(fb) > 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-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins