Fix some valgrind issues
[scilab.git] / scilab / modules / preferences / src / c / getScilabPreference.c
index 4d6f5c7..f84a650 100644 (file)
@@ -140,6 +140,7 @@ void getPrefs()
         path = (char *)MALLOC(strlen(SCIHOME) + strlen(XCONF));
 
         sprintf(path, XCONF, SCIHOME);
+        FREE(SCIHOME);
 
         if (FileExist(path))
         {