Free visited network nodes when enumerator is deallocated, too
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Oct 2019 15:20:09 +0000 (15:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Oct 2019 15:20:09 +0000 (15:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c

index 671854e..37a44e5 100644 (file)
@@ -606,6 +606,9 @@ static void loc_database_enumerator_free(struct loc_database_enumerator* enumera
        if (enumerator->string)
                free(enumerator->string);
 
+       // Free network search
+       free(enumerator->networks_visited);
+
        free(enumerator);
 }