memory leak fixed in library management.
[scilab.git] / scilab / modules / io / sci_gateway / cpp / sci_load.cpp
index 6dca744..181faac 100644 (file)
@@ -78,6 +78,7 @@ Function::ReturnValue sci_load(types::typed_list &in, int _iRetCount, types::typ
                 return Function::Error;
             }
             FREE(pwstPathLib);
+            lib->killMe();
         }
     }
     else