aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-01-16 19:19:15 +0100
committerAleksander Morgado <aleksander@aleksander.es>2016-01-17 15:34:17 +0100
commit3b97d7e3d7f126ded63393af932d0e147b302fac (patch)
tree98f67c83f1f0a4898b5e36570eae30213dbf05ed /src
parent884d7bee1b25697a4fa378f43801e0cafd0a8c5e (diff)
broadband-modem: plug memleaks when processing QCDM responses
Diffstat (limited to 'src')
-rw-r--r--src/mm-broadband-modem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c
index b3bfae0e..6fc0663d 100644
--- a/src/mm-broadband-modem.c
+++ b/src/mm-broadband-modem.c
@@ -1061,6 +1061,7 @@ mdn_qcdm_ready (MMPortSerialQcdm *port,
result = qcdm_cmd_nv_get_mdn_result ((const gchar *) response->data,
response->len,
&err);
+ g_byte_array_unref (response);
if (!result) {
g_simple_async_result_set_error (ctx->result,
MM_CORE_ERROR,
@@ -6690,6 +6691,7 @@ hdr_subsys_state_info_ready (MMPortSerialQcdm *port,
result = qcdm_cmd_hdr_subsys_state_info_result ((const gchar *) response->data,
response->len,
&err);
+ g_byte_array_unref (response);
if (!result) {
g_simple_async_result_set_error (ctx->result,
MM_CORE_ERROR,