ModemManager/0007-mmcli-sms-do-not-leak-message_reference.patch
Lubomir Rintel 471d385cd1 Add patches for a couple of bugs that make static analysis unhappy
Real bugs, but no security implications. Let's check the boxes and fix
them, to reduce the static analysis tooling noise.

Resolves: https://issues.redhat.com/browse/RHEL-38991
2024-06-25 10:52:15 +02:00

26 lines
745 B
Diff

From 7658e4be92a26c5e0245a3169fb61922f0e96811 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Sun, 26 May 2024 23:58:41 +0200
Subject: [PATCH 07/11] mmcli/sms: do not leak message_reference
---
cli/mmcli-sms.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cli/mmcli-sms.c b/cli/mmcli-sms.c
index 6586d0373..46bc95ef8 100644
--- a/cli/mmcli-sms.c
+++ b/cli/mmcli-sms.c
@@ -191,6 +191,8 @@ print_sms_info (MMSms *sms)
mmcli_output_string (MMC_F_SMS_PROPERTIES_DELIVERY_STATE, delivery_state);
mmcli_output_string (MMC_F_SMS_PROPERTIES_DISCH_TIMESTAMP, mm_sms_get_discharge_timestamp (sms));
mmcli_output_dump ();
+
+ g_free (message_reference);
}
static void
--
2.45.2