From bd215c1b3ee2a509c37c5fb2b81191c02c45b4b0 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 27 Jul 2023 13:35:47 +0200 Subject: Fix some more memory leaks --- src/im-sandbox.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index c642988f..a91c6a87 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -286,6 +286,8 @@ static int get_pattern(struct get_pattern_ctx *gpctx, if ( evstr != NULL ) { *pfilename = filename; *pevent = evstr; + free(gpctx->filename); + gpctx->filename = filename; return 1; } -- cgit v1.2.3