summaryrefslogtreecommitdiff
path: root/src/plugins/plugin-infolist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugin-infolist.c')
-rw-r--r--src/plugins/plugin-infolist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/plugin-infolist.c b/src/plugins/plugin-infolist.c
index a05a897c4..233a9c1d9 100644
--- a/src/plugins/plugin-infolist.c
+++ b/src/plugins/plugin-infolist.c
@@ -476,6 +476,8 @@ plugin_infolist_var_free (struct t_plugin_infolist_item *item,
free (var->value);
}
+ free (var);
+
item->vars = new_vars;
}
@@ -511,6 +513,8 @@ plugin_infolist_item_free (struct t_plugin_infolist *list,
if (item->fields)
free (item->fields);
+ free (item);
+
list->items = new_items;
}
@@ -543,6 +547,8 @@ plugin_infolist_free (struct t_plugin_infolist *list)
plugin_infolist_item_free (list, list->items);
}
+ free (list);
+
plugin_infolists = new_plugin_infolists;
}