From 245478a030d53ed752c4a5df05c2ac6cadbfbfcf Mon Sep 17 00:00:00 2001 From: David Given Date: Fri, 15 Feb 2019 23:40:42 +0100 Subject: [PATCH] Fix memory corruption when using -R; the values being stored in the list weren't freeable when they should have been. --- util/ack/trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ack/trans.c b/util/ack/trans.c index 235b81ffc..1152dfbd7 100644 --- a/util/ack/trans.c +++ b/util/ack/trans.c @@ -223,7 +223,7 @@ static void set_Rflag(char* argp) } else if (*eos == '=') { - t_cont(*prog)->t_prog = eos + 1; + t_cont(*prog)->t_prog = keeps(eos + 1); } else {