Changeset: 8243e86c8d60 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8243e86c8d60
Modified Files:
        sql/backends/monet5/vaults/mseed.c
Branch: Oct2014
Log Message:

Fix potential memory leak.


diffs (21 lines):

diff --git a/sql/backends/monet5/vaults/mseed.c 
b/sql/backends/monet5/vaults/mseed.c
--- a/sql/backends/monet5/vaults/mseed.c
+++ b/sql/backends/monet5/vaults/mseed.c
@@ -162,13 +162,13 @@ MseedImport(Client cntxt, MalBlkPtr mb, 
                } else {
                        if( strcmp(network,msr->network))
                                msg = 
createException(MAL,"mseed.import","network name is not stable");
-                       if( strcmp(station,msr->station))
+                       else if( strcmp(station,msr->station))
                                msg = 
createException(MAL,"mseed.import","station name is not stable");
-                       if( strcmp(location,msr->location))
+                       else if( strcmp(location,msr->location))
                                msg = 
createException(MAL,"mseed.import","location name is not stable");
-                       if( strcmp(channel,msr->channel))
+                       else if( strcmp(channel,msr->channel))
                                msg = 
createException(MAL,"mseed.import","channel name is not stable");
-                       if ( sampletype != msr->sampletype)
+                       else if ( sampletype != msr->sampletype)
                                msg = 
createException(MAL,"mseed.import","sample type is not stable");
                        if (msg) goto wrapup;
                }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to