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.
30 lines
808 B
30 lines
808 B
1 month ago
|
From 4c28ea13d9b1e75d0bc0dfa4c588b478635c12c0 Mon Sep 17 00:00:00 2001
|
||
|
From: Lubomir Rintel <lkundrak@v3.sk>
|
||
|
Date: Thu, 23 May 2024 14:43:15 +0200
|
||
|
Subject: [PATCH 01/11] shared-qmi: do not leak a string in error path
|
||
|
|
||
|
---
|
||
|
src/mm-shared-qmi.c | 5 +++--
|
||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/src/mm-shared-qmi.c b/src/mm-shared-qmi.c
|
||
|
index 8da4ecc69..923c6b51a 100644
|
||
|
--- a/src/mm-shared-qmi.c
|
||
|
+++ b/src/mm-shared-qmi.c
|
||
|
@@ -4905,9 +4905,10 @@ loc_location_get_server_indication_cb (QmiClientLoc *client,
|
||
|
str = g_strdup ("");
|
||
|
|
||
|
out:
|
||
|
- if (error)
|
||
|
+ if (error) {
|
||
|
+ g_free (str);
|
||
|
g_task_return_error (task, error);
|
||
|
- else {
|
||
|
+ } else {
|
||
|
g_assert (str);
|
||
|
g_task_return_pointer (task, str, g_free);
|
||
|
}
|
||
|
--
|
||
|
2.45.2
|
||
|
|