Fix #18: Segmentation fault due to a pointer pointing to already freed data.
This commit is contained in:
parent
4f02854401
commit
8ffcba830d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user