aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/im-sandbox.c2
1 files changed, 2 insertions, 0 deletions
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;
}