From 74a615d5af975cb71624ff282aaa88be64a4ba6a Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 16 Mar 2021 15:12:49 +0100 Subject: [PATCH] Free tmalloced Cfg.strings[i] --- src/frontend/svg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/svg.c b/src/frontend/svg.c index 083a9bf9a..35abf0df4 100644 --- a/src/frontend/svg.c +++ b/src/frontend/svg.c @@ -331,6 +331,9 @@ SVG_Close(void) tfree(colors); } + for (i = 0; i < NUM_STRINGS; i++) + tfree(Cfg.strings[i]); + /* In case of hardcopy command destroy the hardcopy graph * and reset currentgraph to graphid 1, if possible */