[Spice-devel] [PATCH spice-server] Avoid use after free
Frediano Ziglio
fziglio at redhat.com
Fri Nov 18 09:38:50 UTC 2016
self->priv was deleted and then used
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/display-channel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 46191b0..52f0a3d 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -79,8 +79,8 @@ display_channel_finalize(GObject *object)
G_OBJECT_CLASS(display_channel_parent_class)->finalize(object);
- g_free(self->priv);
g_array_unref(self->priv->video_codecs);
+ g_free(self->priv);
}
static void drawable_draw(DisplayChannel *display, Drawable *drawable);
--
2.7.4
More information about the Spice-devel
mailing list