Add dlclose so that shared libraries get shutdown correctly

This commit is contained in:
Mark Riddoch 2014-10-03 14:34:46 +01:00
parent fd1154b944
commit d5947a0922

View File

@ -326,6 +326,7 @@ MODULES *ptr;
* The module is now not in the linked list and all
* memory related to it can be freed
*/
dlclose(mod->handle);
free(mod->module);
free(mod->type);
free(mod->version);