From: Joel Rosdahl Date: Sun, 5 Sep 2010 08:46:10 +0000 (+0200) Subject: Plug memory leak in remember_include_file X-Git-Tag: v3.1~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2352069ec1fe77134d327cf5ca36ff0c12a275af;p=thirdparty%2Fccache.git Plug memory leak in remember_include_file --- diff --git a/ccache.c b/ccache.c index 10177f61f..3b221987b 100644 --- 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;