--- server/red_parse_qxl.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index 65781e7..7d4d4a1 100644 --- a/server/red_parse_qxl.c +++ b/server/red_parse_qxl.c @@ -490,12 +490,8 @@ static SpiceImage *red_get_image(RedMemSlotInfo *slots, int group_id, } return red; error: - if (red) { - free(red); - } - if (rp) { - free(rp); - } + free(red); + free(rp); return NULL; } -- 1.8.1.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel