Commit 9c038151 authored by x00292102's avatar x00292102 Committed by Simon McVittie
Browse files

Fix double free for data.channel



Signed-off-by: default avatarZhipeng Xie <xiezhipeng1@huawei.com>
parent 39f0ae61
......@@ -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 ();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment