diff --git a/gds-utils/gds-tree-checker.c b/gds-utils/gds-tree-checker.c index 22500f8..88c4376 100644 --- a/gds-utils/gds-tree-checker.c +++ b/gds-utils/gds-tree-checker.c @@ -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) {