[Spice-commits] server/char-device.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 16 13:54:05 UTC 2020
server/char-device.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 321caf876022e4d4a02ce78e2490705922399ed0
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Sep 11 14:55:13 2019 +0100
char-device: Add a comment to red_char_device_write_buffer_free
It's a bit surprising that buf is not freed too so explain it.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/char-device.c b/server/char-device.c
index 927c43ff..0aae89d1 100644
--- a/server/char-device.c
+++ b/server/char-device.c
@@ -158,6 +158,8 @@ static void red_char_device_write_buffer_free(RedCharDeviceWriteBuffer *buf)
if (buf) {
g_free(buf->priv);
}
+ /* NOTE: do not free buf. buf was contained into a larger structure
+ * which contained both private and public part and was freed above */
}
static void write_buffers_queue_free(GQueue *write_queue)
More information about the Spice-commits
mailing list