Commit 91d89020 authored by Michael Tremer's avatar Michael Tremer

Free visited network nodes when enumerator is deallocated, too

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent e3f696c1
...@@ -606,6 +606,9 @@ static void loc_database_enumerator_free(struct loc_database_enumerator* enumera ...@@ -606,6 +606,9 @@ static void loc_database_enumerator_free(struct loc_database_enumerator* enumera
if (enumerator->string) if (enumerator->string)
free(enumerator->string); free(enumerator->string);
// Free network search
free(enumerator->networks_visited);
free(enumerator); free(enumerator);
} }
......
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