From: Joel Rosdahl Date: Sun, 19 Aug 2018 06:52:07 +0000 (+0200) Subject: Fix minor memory leak introduced in dde3543c X-Git-Tag: v3.5~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f165666746cff8a8feb833a9686c45c9f8fc055;p=thirdparty%2Fccache.git Fix minor memory leak introduced in dde3543c --- diff --git a/src/ccache.c b/src/ccache.c index f363e948a..1fc04d3f5 100644 --- a/src/ccache.c +++ b/src/ccache.c @@ -856,6 +856,7 @@ process_preprocessed_file(struct mdfour *hash, const char *path, bool pump) if (q >= end) { cc_log("Failed to parse included file path"); free(data); + free(cwd); return false; } // q points to the beginning of an include file path