[Spice-commits] server/display-channel.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Fri Nov 18 10:06:45 UTC 2016
server/display-channel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 36bf206df8a7ef4a869e63f5320a3794b210b1a7
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Fri Nov 18 09:31:17 2016 +0000
Avoid use after free
self->priv was deleted and then used
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Pavel Grunt <pgrunt at redhat.com>
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);
More information about the Spice-commits
mailing list