Coverity #1320919 Double free fix 51/17951/3
Aashish Misraa [Tue, 22 Mar 2016 09:32:27 +0000 (14:32 +0530)]
Change-Id: If91439d55bee448320214b17355bf2bfe01b7682

scilab/modules/api_scilab/src/cpp/api_stack_pointer.cpp

index 56a313f..f94c8df 100644 (file)
@@ -117,7 +117,6 @@ SciErr createNamedPointer(void* _pvCtx, const char* _pstName, void* _pvPtr)
         delete pP;
         addErrorMessage(&sciErr, API_ERROR_REDEFINE_PERMANENT_VAR, _("Redefining permanent variable.\n"));
     }
-    FREE(pwstName);
 
     return sciErr;
 }