From beead87f3b65b1e9149d27779f5aac215a1f8b24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= <thomas@t-8ch.de>
Date: Fri, 22 Sep 2023 11:20:04 +0200
Subject: [PATCH] libblkid: avoid memory leak of cachefile path
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Reference:https://github.com/util-linux/util-linux/commit/beead87f3b65b1e9149d27779f5aac215a1f8b24
Conflict:NA
---
 libblkid/src/config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libblkid/src/config.c b/libblkid/src/config.c
index f229b3e63..d3f5eea3d 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;
-- 
2.33.0

