summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx00292102 <xiezhipeng1@huawei.com>2018-04-10 11:46:38 +0800
committerSimon McVittie <smcv@collabora.com>2018-12-03 14:59:46 +0000
commit9c038151b491dead7b9f9ca2d1a70c16417966a0 (patch)
tree97fbb6f7da6b88d9a74804fedd73670189666b57
parent39f0ae6152acfb3d8ca086090a02e0aa8742f050 (diff)
downloaddbus-glib-9c038151b491dead7b9f9ca2d1a70c16417966a0.tar.gz
Fix double free for data.channel
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
-rw-r--r--dbus/dbus-binding-tool-glib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-binding-tool-glib.c b/dbus/dbus-binding-tool-glib.c
index f0b6bf6..2a3ff03 100644
--- a/dbus/dbus-binding-tool-glib.c
+++ b/dbus/dbus-binding-tool-glib.c
@@ -870,11 +870,13 @@ dbus_binding_tool_output_glib_server (BaseInfo *info, GIOChannel *channel, const
ret = FALSE;
g_io_channel_shutdown (data.channel, TRUE, error);
g_io_channel_unref (data.channel);
+ data.channel = NULL;
goto io_lose;
}
g_io_channel_shutdown (data.channel, TRUE, error);
g_io_channel_unref (data.channel);
+ data.channel = NULL;
/* Now spawn glib-genmarshal to insert all our required marshallers */
argv = g_ptr_array_new ();