Commit a6dc9324 authored by Michael Tremer's avatar Michael Tremer

as-list/country-list: Set elements list to zero after freeing it

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 775621e8
......@@ -103,6 +103,7 @@ LOC_EXPORT void loc_as_list_clear(struct loc_as_list* list) {
loc_as_unref(list->elements[i]);
free(list->elements);
list->elements = NULL;
list->elements_size = 0;
list->size = 0;
......
......@@ -103,6 +103,7 @@ LOC_EXPORT void loc_country_list_clear(struct loc_country_list* list) {
loc_country_unref(list->elements[i]);
free(list->elements);
list->elements = NULL;
list->elements_size = 0;
list->size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment