summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Dankov <tryagain@navit-project.org>2015-08-12 00:52:40 +0300
committerMichael Dankov <tryagain@navit-project.org>2015-08-12 00:52:40 +0300
commitc9073a8192406234904efb5a4ec26c647fce033d (patch)
tree285516fc522a31a856e64b1cc2e8b86fa95744fc
parentdadf3d2f30d350f2e6cfb585e100e9c7928bdbbd (diff)
downloadnavit-c9073a8192406234904efb5a4ec26c647fce033d.tar.gz
Fix:maptool:Properly free the boundary list.
-rw-r--r--navit/maptool/boundaries.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/navit/maptool/boundaries.c b/navit/maptool/boundaries.c
index 480f5d65e..5e0a5b013 100644
--- a/navit/maptool/boundaries.c
+++ b/navit/maptool/boundaries.c
@@ -352,8 +352,9 @@ process_boundaries(FILE *boundaries, FILE *ways)
}
void
-free_boundaries(GList *l)
+free_boundaries(GList *bl)
{
+ GList *l=bl;
while (l) {
struct boundary *boundary=l->data;
GList *s=boundary->segments;
@@ -378,5 +379,5 @@ free_boundaries(GList *l)
g_free(boundary);
l=g_list_next(l);
}
- g_list_free(l);
+ g_list_free(bl);
}