summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}