From 6f165666746cff8a8feb833a9686c45c9f8fc055 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 19 Aug 2018 08:52:07 +0200 Subject: [PATCH] Fix minor memory leak introduced in dde3543c --- src/ccache.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.2