Coverity #1321032, #1321033 fixed 32/18432/2
Dhruv Khattar [Tue, 9 Aug 2016 17:05:42 +0000 (22:05 +0530)]
Change-Id: I779ae1a16a06cefd6937efc18c44ad677f14c6b3

scilab/modules/string/src/c/stringToComplex.c

index bcbfaa7..f44791f 100644 (file)
@@ -789,16 +789,10 @@ static stringToComplexError ParseComplexValueW(const wchar_t *tx, BOOL bConvertB
             FREE(rnum_string);
             rnum_string = NULL;
         }
-        if (inum_string)
-        {
-            FREE(inum_string);
-            inum_string = NULL;
-        }
-        if (modifiedTxt)
-        {
-            FREE(modifiedTxt);
-            modifiedTxt = NULL;
-        }
+        FREE(inum_string);
+        inum_string = NULL;
+        FREE(modifiedTxt);
+        modifiedTxt = NULL;
     }
     return ierr;
 }