Blame SOURCES/0010-parted-Free-tmp-usage-inside-do_print.patch

edefaa
From fbd83d9df7bf5fd0c830935decb9bbc482bf95f4 Mon Sep 17 00:00:00 2001
edefaa
From: "Brian C. Lane" <bcl@redhat.com>
edefaa
Date: Thu, 10 Jun 2021 15:52:28 -0700
edefaa
Subject: [PATCH 10/13] parted: Free tmp usage inside do_print
edefaa
edefaa
str_list_create calls gettext_to_wchar which makes a copy of it.
edefaa
---
edefaa
 parted/parted.c | 1 +
edefaa
 1 file changed, 1 insertion(+)
edefaa
edefaa
diff --git a/parted/parted.c b/parted/parted.c
edefaa
index e9aa240..ba152c3 100644
edefaa
--- a/parted/parted.c
edefaa
+++ b/parted/parted.c
edefaa
@@ -1192,6 +1192,7 @@ do_print (PedDevice** dev, PedDisk** diskp)
edefaa
                             sprintf (tmp, "%2s ", "");
edefaa
 
edefaa
                     StrList *row = str_list_create (tmp, NULL);
edefaa
+                    free(tmp);
edefaa
 
edefaa
                     start = ped_unit_format (*dev, part->geom.start);
edefaa
                     end = ped_unit_format_byte (
edefaa
-- 
edefaa
2.31.1
edefaa