]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: avoid memory leak of cachefile path
authorThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 09:20:04 +0000 (11:20 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Sep 2023 18:23:45 +0000 (20:23 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
libblkid/src/config.c

index f229b3e63247a046c65de71908997c56bcd8d43b..d3f5eea3ddf1257586b77128d44e55a5164fe16b 100644 (file)
@@ -155,6 +155,7 @@ dflt:
                fclose(f);
        return conf;
 err:
+       free(conf->cachefile);
        free(conf);
        fclose(f);
        return NULL;