Coverity: String module Resource Leaks fixed
[scilab.git] / scilab / modules / string / sci_gateway / cpp / sci_tokens.cpp
index 409a6e9..6f5fe0a 100644 (file)
@@ -95,6 +95,7 @@ types::Function::ReturnValue sci_tokens(types::typed_list &in, int _iRetCount, t
             {
                 Scierror(999, _("%s: Wrong type for input argument #%d: Char(s) expected.\n"), "tokens", 2);
                 delete pOutString;
+                FREE(seps);
                 return types::Function::Error;
             }
             seps[i] = pCharSample->get(i)[0];