Coverity #1098685 fixed 41/18241/1
Dhruv Khattar [Tue, 14 Jun 2016 07:35:38 +0000 (12:35 +0530)]
Change-Id: I6a8cab97b5b48a6f77f2623e05406fbda120a244

scilab/modules/graphic_export/sci_gateway/cpp/sci_xend.cpp

index 072c474..7856348 100644 (file)
@@ -49,6 +49,7 @@ int sci_xend(char * fname, void *pvApiCtx)
             if (*ret != '\0')
             {
                 Scierror(999, _("%s: An error occurred: %s\n"), fname, ret);
+                delete[] ret;
                 return 0;
             }
             delete[] ret;