From 8ffcba830da4bd9b224b4a0657996e314ce52002 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Thu, 13 Jun 2019 23:17:20 +0200 Subject: [PATCH] Fix #18: Segmentation fault due to a pointer pointing to already freed data. --- gds-utils/gds-tree-checker.c | 1 + 1 file changed, 1 insertion(+) 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) {