From: Joel Rosdahl Date: Sat, 3 Feb 2018 21:56:11 +0000 (+0100) Subject: Fix use-after-free error in 316b966b X-Git-Tag: v3.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c2a7802580cb523aa2f8e20455964aaa24982fd;p=thirdparty%2Fccache.git Fix use-after-free error in 316b966b --- diff --git a/ccache.c b/ccache.c index 15c225ce2..c1d51da5a 100644 --- a/ccache.c +++ b/ccache.c @@ -2847,7 +2847,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args, result = false; goto out; } - actual_language = explicit_language; + actual_language = x_strdup(explicit_language); } else { actual_language = file_language; }