[Spice-devel] [PATCH spice-server 06/16] test-display-base: Avoid cursor move command leaks
Christophe Fergeau
cfergeau at redhat.com
Wed Sep 6 15:56:04 UTC 2017
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Mon, Sep 04, 2017 at 11:57:14AM +0100, Frediano Ziglio wrote:
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
More information about the Spice-devel
mailing list