diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-10-27 18:53:35 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-11-07 10:48:30 +0100 |
commit | a3ac69bce97950aadbeb694f8d465c0035b2a991 (patch) | |
tree | 2b6633687936008e0af375fd3490485db3b12e80 | |
parent | 4f7327d7b45abd9848473ca2ae27582fa65e5f24 (diff) |
libqmi-glib,proxy: print error message on response forwarding error, and plug memleak
(cherry picked from commit 5284d3e2473d1b3e5f3584b37ae0bba3498ade4e)
-rw-r--r-- | src/libqmi-glib/qmi-proxy.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libqmi-glib/qmi-proxy.c b/src/libqmi-glib/qmi-proxy.c index 36c85b5..857780b 100644 --- a/src/libqmi-glib/qmi-proxy.c +++ b/src/libqmi-glib/qmi-proxy.c @@ -494,8 +494,11 @@ device_command_ready (QmiDevice *device, track_cid (request->client, FALSE, response); } - if (!send_message (request->client, response, &error)) + if (!send_message (request->client, response, &error)) { + g_warning ("sending request to device failed: %s", error->message); + g_error_free (error); connection_close (request->client); + } qmi_message_unref (response); g_slice_free (Request, request); |