aboutsummaryrefslogtreecommitdiff
path: root/plugins/simtech/mm-broadband-modem-simtech.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-10-06 18:05:36 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-10-07 10:01:44 +0200
commit1e4769257368c681cea6e109a18ed9ff113b2b57 (patch)
treeeb327e459cb71287dd3af9b9a28ab7f025461ff1 /plugins/simtech/mm-broadband-modem-simtech.c
parent25f37fd613386ab135008dfb97946710ba3674cf (diff)
simtech: fix memory leak
Diffstat (limited to 'plugins/simtech/mm-broadband-modem-simtech.c')
-rw-r--r--plugins/simtech/mm-broadband-modem-simtech.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/simtech/mm-broadband-modem-simtech.c b/plugins/simtech/mm-broadband-modem-simtech.c
index 45cc5542..c511629e 100644
--- a/plugins/simtech/mm-broadband-modem-simtech.c
+++ b/plugins/simtech/mm-broadband-modem-simtech.c
@@ -565,6 +565,7 @@ cnmp_query_ready (MMBroadbandModemSimtech *self,
"Unknown acquisition order preference: '%d'",
ctx->acqord);
g_object_unref (task);
+ g_free (result);
return;
}
break;
@@ -589,6 +590,7 @@ cnmp_query_ready (MMBroadbandModemSimtech *self,
"Unknown mode preference: '%d'",
ctx->modepref);
g_object_unref (task);
+ g_free (result);
return;
}