From 828763b74716a956dd96ea12a938edbee4d8ca7b Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 5 Sep 2011 06:20:12 -0300 Subject: [PATCH] cameo/path.c (path_replace): free the old ID --- cameo/path.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cameo/path.c b/cameo/path.c index a80965f..6732e29 100644 --- a/cameo/path.c +++ b/cameo/path.c @@ -139,6 +139,7 @@ void path_replace(struct path *old, struct path *new) struct path *next = old->next; free_points(old->first); + free((void *) old->id); *old = *new; old->next = next; free(new);