diff options
author | Uri Lublin <uril@redhat.com> | 2013-07-09 23:21:07 +0300 |
---|---|---|
committer | Uri Lublin <uril@redhat.com> | 2013-07-16 23:37:28 +0300 |
commit | a89b1b5543e65f483764556eab17d70f20f72a84 (patch) | |
tree | 3b90ec8476a6cc4a7d495282b62c4dd03a9859a5 | |
parent | 8511c747d12eaa3e60baf56316cb66b3ef0b7501 (diff) | |
download | spice-a89b1b5543e65f483764556eab17d70f20f72a84.tar.gz spice-a89b1b5543e65f483764556eab17d70f20f72a84.tar.xz spice-a89b1b5543e65f483764556eab17d70f20f72a84.zip |
syntax-check: fix avoid_if_before_free
-rw-r--r-- | server/red_parse_qxl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/server/red_parse_qxl.c b/server/red_parse_qxl.c index 65781e74..7d4d4a1d 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; } |