[Spice-devel] [PATCH spice-server 06/16] test-display-base: Avoid cursor move command leaks
Frediano Ziglio
fziglio at redhat.com
Mon Sep 4 10:57:14 UTC 2017
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/tests/test-display-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/tests/test-display-base.c b/server/tests/test-display-base.c
index ed62a607..d6b2dd07 100644
--- a/server/tests/test-display-base.c
+++ b/server/tests/test-display-base.c
@@ -678,7 +678,7 @@ static void release_resource(SPICE_GNUC_UNUSED QXLInstance *qin,
break;
case QXL_CMD_CURSOR: {
QXLCursorCmd *cmd = (QXLCursorCmd *)(unsigned long)ext->cmd.data;
- if (cmd->type == QXL_CURSOR_SET) {
+ if (cmd->type == QXL_CURSOR_SET || cmd->type == QXL_CURSOR_MOVE) {
free(cmd);
}
free(ext);
--
2.13.5
More information about the Spice-devel
mailing list