From 841f2846fefc69270de18be28e7e201b0fb4476e Mon Sep 17 00:00:00 2001 From: h_vogt Date: Mon, 28 Mar 2016 14:35:01 +0200 Subject: [PATCH] plotit.c, properly free a reversed wordlist --- src/frontend/plotting/plotit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/plotting/plotit.c b/src/frontend/plotting/plotit.c index 756629323..b13a21219 100644 --- a/src/frontend/plotting/plotit.c +++ b/src/frontend/plotting/plotit.c @@ -272,7 +272,8 @@ plotit(wordlist *wl, char *hcopy, char *devname) tfree(ntitle); } - cline = wl_flatten(wl_reverse(tail)); + tail = wl_reverse(tail); + cline = wl_flatten(tail); wl_free(tail); /* Now extract all the parameters. */