From 43e30c01c709412b1a905f3997b63017c205471a Mon Sep 17 00:00:00 2001
From: Tomas Bzatek <tbzatek@redhat.com>
Date: Tue, 13 Aug 2024 17:24:28 +0800
Subject: [PATCH] udiskslinuxblock: Fix leaking string

---
 src/udiskslinuxblock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/udiskslinuxblock.c b/src/udiskslinuxblock.c
index 829dd5f..be5c340 100644
--- a/src/udiskslinuxblock.c
+++ b/src/udiskslinuxblock.c
@@ -1244,6 +1244,7 @@ udisks_linux_block_update (UDisksLinuxBlock       *block,
       bitlk_info = bd_crypto_bitlk_info (device_file, &error);
       if (bitlk_info)
         {
+          g_free (s);
           s = g_strdup (bitlk_info->uuid);
           bd_crypto_bitlk_info_free (bitlk_info);
         }
-- 
2.33.0

