Fix #18: Segmentation fault due to a pointer pointing to already freed data.

This commit is contained in:
Mario Hüttel 2019-06-13 23:17:20 +02:00
parent 4f02854401
commit 8ffcba830d

View File

@ -184,6 +184,7 @@ int gds_tree_check_reference_loops(struct gds_library *lib)
if (res == 0)
fprintf(stderr, "Visited cell list should be empty. This is a bug. Please report this.\n");
g_list_free(visited_cells);
visited_cells = NULL;
}
if (res < 0) {