From 221ae03b5c3ba8ab018909b5815a6985476e99fe Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 17 Jan 2016 22:57:16 +0100
Subject: degesch: Lua: fix memory leak on load failure
---
degesch.c | 3 +--
1 file changed, 1 insertion(+), 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;
}
--
cgit v1.2.3-70-g09d2