summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-10-27 18:55:03 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-11-07 10:48:32 +0100
commit557799d1274b80a028e42fbb24c2c18b68b46b81 (patch)
tree1e4aeb46fb855712f9e14152ea90acc24caba7d0
parenta3ac69bce97950aadbeb694f8d465c0035b2a991 (diff)
libqmi-glib,proxy: plug memleak on command error
(cherry picked from commit 5a370d0929e756912e4486e1869c877618a4b6c1)
-rw-r--r--src/libqmi-glib/qmi-proxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libqmi-glib/qmi-proxy.c b/src/libqmi-glib/qmi-proxy.c
index 857780b..44ad11c 100644
--- a/src/libqmi-glib/qmi-proxy.c
+++ b/src/libqmi-glib/qmi-proxy.c
@@ -483,6 +483,7 @@ device_command_ready (QmiDevice *device,
if (!response) {
g_warning ("sending request to device failed: %s", error->message);
g_error_free (error);
+ g_slice_free (Request, request);
return;
}