You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ModemManager/SOURCES/0007-mmcli-sms-do-not-leak-...

26 lines
745 B

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