diff options
author | Ben Chan <benchan@chromium.org> | 2019-04-03 10:53:01 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-07-04 14:47:16 +0200 |
commit | 219c9fed39299022bb6b07051cd9454fd68c6e39 (patch) | |
tree | 1df3482be60b664f8bd7c6fdb2eb4dc035501b92 | |
parent | 8cfb56d4e67690a153fb222331876579e58942be (diff) | |
download | ModemManager-219c9fed39299022bb6b07051cd9454fd68c6e39.tar.gz |
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.
(cherry picked from commit 84fe52a1e6f1521ecc95666c5a17e37a4937b22a)
-rw-r--r-- | src/mm-modem-helpers.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c index 4a56e9390..08a8ba275 100644 --- a/src/mm-modem-helpers.c +++ b/src/mm-modem-helpers.c @@ -3271,6 +3271,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'", |