aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2019-04-03 10:53:01 -0700
committerBen Chan <benchan@chromium.org>2019-04-03 10:53:01 -0700
commit84fe52a1e6f1521ecc95666c5a17e37a4937b22a (patch)
tree572cec9c52b8086d7e478b0a07a5d43435c244e7 /src/mm-modem-helpers.c
parent7e4a8d9566b178de09618c7c5272565ac185e3d1 (diff)
modem-helpers: fix memory leak in mm_3gpp_parse_pdu_cmgl_response
This patch fixes a potential memory leak in mm_3gpp_parse_pdu_cmgl_response() where the allocated MM3gppPduInfo may be leaked when failing to parse the +CMGL response.
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r--src/mm-modem-helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index c999637a..cf008d73 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -3626,6 +3626,7 @@ mm_3gpp_parse_pdu_cmgl_response (const gchar *str,
list = g_list_append (list, info);
g_match_info_next (match_info, &inner_error);
} else {
+ mm_3gpp_pdu_info_free (info);
inner_error = g_error_new (MM_CORE_ERROR,
MM_CORE_ERROR_FAILED,
"Error parsing +CMGL response: '%s'",