From aa6ea602cab504db8072b55bdad8af3d98fbb0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 12 Jan 2019 21:13:50 +0100 Subject: [PATCH] plugin: remove linked-list items as we --- plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.c b/plugin.c index 7edfc2f..3cc20db 100644 --- a/plugin.c +++ b/plugin.c @@ -29,9 +29,8 @@ fini(void) LOG_ERR("%s: dlclose(): %s", plug->item.name, dl_error); free(plug->item.name); + tll_remove(libs, plug); } - - tll_free(libs); } const struct module_info *