diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-17 22:57:16 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-17 22:57:16 +0100 |
commit | 221ae03b5c3ba8ab018909b5815a6985476e99fe (patch) | |
tree | ffa09e18f008ab522cee20c604e9bde33acb1f76 /degesch.c | |
parent | 588a696c685797a2d788ab51f4b85113bd4c5e30 (diff) | |
download | xK-221ae03b5c3ba8ab018909b5815a6985476e99fe.tar.gz xK-221ae03b5c3ba8ab018909b5815a6985476e99fe.tar.xz xK-221ae03b5c3ba8ab018909b5815a6985476e99fe.zip |
degesch: Lua: fix memory leak on load failure
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -8845,8 +8845,7 @@ lua_plugin_load (struct app_context *ctx, const char *filename, else return &plugin->super; - lua_close (L); - free (plugin); + plugin_destroy (&plugin->super); return NULL; } |