summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-01-17 22:57:16 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-01-17 22:57:16 +0100
commit221ae03b5c3ba8ab018909b5815a6985476e99fe (patch)
treeffa09e18f008ab522cee20c604e9bde33acb1f76 /degesch.c
parent588a696c685797a2d788ab51f4b85113bd4c5e30 (diff)
downloadxK-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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index 6fce8c8..1997aea 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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;
}