From: Andrey Volk Date: Fri, 12 Jul 2019 16:41:19 +0000 (+0400) Subject: FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_video.c X-Git-Tag: v1.10.0~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42db14e68f0642ccfcd71dd253d6f56ea41079e3;p=thirdparty%2Ffreeswitch.git FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_video.c --- diff --git a/src/switch_core_video.c b/src/switch_core_video.c index d199df5ccd..ba9d18e9e7 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -635,7 +635,7 @@ SWITCH_DECLARE(void) switch_img_rotate_copy(switch_image_t *img, switch_image_t if (img->fmt != SWITCH_IMG_FMT_I420) abort(); if (*new_img != NULL) { - if (img->fmt != (*new_img)->fmt || img->d_w != (*new_img)->d_w || img->d_h != (*new_img)->d_w) { + if (img->fmt != (*new_img)->fmt || img->d_w != (*new_img)->d_w || img->d_h != (*new_img)->d_h) { switch_img_free(new_img); } }