]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Plug memory leak in remember_include_file
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Sep 2010 08:46:10 +0000 (10:46 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Sep 2010 08:46:10 +0000 (10:46 +0200)
ccache.c

index 10177f61f48029c60889500947ac3f639453801a..3b221987b650af18eb8eb775b129031dca222127 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -341,6 +341,7 @@ remember_include_file(char *path, size_t path_len)
                }
        }
 
+       free(source);
        h = x_malloc(sizeof(*h));
        hash_result_as_bytes(&fhash, h->hash);
        h->size = fhash.totalN;