From: Thomas Weißschuh Date: Fri, 22 Sep 2023 09:20:04 +0000 (+0200) Subject: libblkid: avoid memory leak of cachefile path X-Git-Tag: v2.40-rc1~233^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beead87f3b65b1e9149d27779f5aac215a1f8b24;p=thirdparty%2Futil-linux.git libblkid: avoid memory leak of cachefile path Signed-off-by: Thomas Weißschuh --- diff --git a/libblkid/src/config.c b/libblkid/src/config.c index f229b3e632..d3f5eea3dd 100644 --- a/libblkid/src/config.c +++ b/libblkid/src/config.c @@ -155,6 +155,7 @@ dflt: fclose(f); return conf; err: + free(conf->cachefile); free(conf); fclose(f); return NULL;