Coverity: graphic_export module resource leaks fixed
[scilab.git] / scilab / modules / graphic_export / sci_gateway / cpp / sci_xinit.cpp
index f613bc8..8f0b85d 100644 (file)
@@ -68,6 +68,7 @@ int sci_xinit(char * fname, void *pvApiCtx)
     else
     {
         Scierror(999, _("%s: Invalid path: %s.\n"), fname, path);
+        freeAllocatedSingleString(path);
         return 0;
     }