degesch: Lua: fix memory leak on load failure
This commit is contained in:
parent
588a696c68
commit
221ae03b5c
@ -8845,8 +8845,7 @@ lua_plugin_load (struct app_context *ctx, const char *filename,
|
|||||||
else
|
else
|
||||||
return &plugin->super;
|
return &plugin->super;
|
||||||
|
|
||||||
lua_close (L);
|
plugin_destroy (&plugin->super);
|
||||||
free (plugin);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user