[gnome-disk-utility] gduatasmartdialog: Free string after use



commit 8172f1d4721c1e5e935a05427a4f97516d06a2f3
Author: Manuel Wassermann <manuel wassermann97 gmail com>
Date:   Sun Apr 3 22:17:09 2022 +0200

    gduatasmartdialog: Free string after use

 src/disks/gduatasmartdialog.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/disks/gduatasmartdialog.c b/src/disks/gduatasmartdialog.c
index e474b8d8..7653a111 100644
--- a/src/disks/gduatasmartdialog.c
+++ b/src/disks/gduatasmartdialog.c
@@ -1028,6 +1028,7 @@ gdu_ata_smart_get_overall_assessment (UDisksDriveAta *ata,
            * The second %s is the temperature of the drive.
            */
           s1 = g_strdup_printf (_("%s (%s)"), ret, s);
+          g_free (s);
           g_free (ret);
           ret = s1;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]