]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix minor memory leak introduced in dde3543c
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Aug 2018 06:52:07 +0000 (08:52 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 19 Aug 2018 06:52:07 +0000 (08:52 +0200)
src/ccache.c

index f363e948a6a247b106530c4935ff122a13dcd2e1..1fc04d3f5bddb3374cdc450eb0f32a91aa96315c 100644 (file)
@@ -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