[Spice-devel] [spice-gtk v1] spice-channel: fix small leak
Victor Toso
victortoso at redhat.com
Mon May 2 14:02:32 UTC 2016
182 bytes in 1 blocks are definitely lost in loss record 9,048 of 9,889
at 0x4C2A988: calloc (vg_replace_malloc.c:711)
by 0xB5F4270: g_malloc0 (gmem.c:124)
by 0x7320678: spice_channel_recv_link_hdr (spice-channel.c:1312)
by 0x7320678: spice_channel_coroutine (spice-channel.c:2543)
by 0x7355A4E: coroutine_trampoline (coroutine_ucontext.c:63)
by 0x7355802: continuation_trampoline (continuation.c:55)
---
src/spice-channel.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/spice-channel.c b/src/spice-channel.c
index 19237b3..f8c8556 100644
--- a/src/spice-channel.c
+++ b/src/spice-channel.c
@@ -187,6 +187,8 @@ static void spice_channel_finalize(GObject *gobject)
if (c->remote_common_caps)
g_array_free(c->remote_common_caps, TRUE);
+ g_clear_pointer(&c->peer_msg, g_free);
+
/* Chain up to the parent class */
if (G_OBJECT_CLASS(spice_channel_parent_class)->finalize)
G_OBJECT_CLASS(spice_channel_parent_class)->finalize(gobject);
--
2.5.5
More information about the Spice-devel
mailing list