23 lines
783 B
Diff
23 lines
783 B
Diff
|
From c68b1375f3729968a1d83feecc6df0f6cfd81746 Mon Sep 17 00:00:00 2001
|
||
|
From: Aleksander Morgado <aleksander@aleksander.es>
|
||
|
Date: Wed, 1 Feb 2017 23:05:40 +0100
|
||
|
Subject: libmbim-glib,device: plug memleak in open timeout
|
||
|
|
||
|
(cherry picked from commit f6249fee1710484a749a5b919ca130d36d64eb2d)
|
||
|
|
||
|
diff --git a/src/libmbim-glib/mbim-device.c b/src/libmbim-glib/mbim-device.c
|
||
|
index a001940..c869ad7 100644
|
||
|
--- a/src/libmbim-glib/mbim-device.c
|
||
|
+++ b/src/libmbim-glib/mbim-device.c
|
||
|
@@ -1281,6 +1281,7 @@ open_message_ready (MbimDevice *self,
|
||
|
|
||
|
/* No more seconds left in the timeout... return error */
|
||
|
}
|
||
|
+ g_error_free (error);
|
||
|
|
||
|
g_debug ("open operation timed out: closed");
|
||
|
self->priv->open_status = OPEN_STATUS_CLOSED;
|
||
|
--
|
||
|
cgit v0.10.2
|
||
|
|