summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-06-24 15:53:50 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-06-24 15:53:50 +0200
commitce50d9c483639d7a7e62addab3eecba177c80a6a (patch)
treed4703f908826568b2a96dea5a86f5127db70ddae /cli
parentdfeaec99ceb3ec5b6fd6ec7add1ce81978d68cfb (diff)
mmcli,messaging: fix leak when printing supported storages
Diffstat (limited to 'cli')
-rw-r--r--cli/mmcli-modem-messaging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/mmcli-modem-messaging.c b/cli/mmcli-modem-messaging.c
index 535cc909..513c6975 100644
--- a/cli/mmcli-modem-messaging.c
+++ b/cli/mmcli-modem-messaging.c
@@ -215,6 +215,7 @@ print_messaging_status (void)
mm_modem_messaging_get_supported_storages (ctx->modem_messaging, &supported, &supported_len);
if (supported)
supported_str = mm_common_build_sms_storages_string (supported, supported_len);
+ g_free (supported);
mmcli_output_string_take (MMC_F_MESSAGING_SUPPORTED_STORAGES, supported_str);
mmcli_output_string (MMC_F_MESSAGING_DEFAULT_STORAGES, mm_sms_storage_get_string (