summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/str_list.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libopkg/str_list.c b/libopkg/str_list.c
index 563f3a1..f4cc136 100644
--- a/libopkg/str_list.c
+++ b/libopkg/str_list.c
@@ -75,10 +75,11 @@ str_list_elt_t *str_list_pop(str_list_t *list)
void str_list_remove(str_list_t *list, str_list_elt_t **iter)
{
- str_list_elt_t * elt = void_list_remove((void_list_t *) list,
+ char *str = void_list_remove((void_list_t *) list,
(void_list_elt_t **) iter);
- str_list_elt_deinit(elt);
+ if (str)
+ free(str);
}
void str_list_remove_elt(str_list_t *list, const char *target_str)