AddressSanitizer: fix some issues at first usage
[scilab.git] / scilab / modules / gui / src / cpp / GetUimenuLabel.cpp
index d03e8cb..6a24345 100644 (file)
@@ -35,7 +35,7 @@ void* GetUimenuLabel(void* _pvCtx, int iOobjUID)
     else
     {
         status = sciReturnString(label);
-        free(label);
+        delete[] label;
         return status;
     }
 }