From 42db14e68f0642ccfcd71dd253d6f56ea41079e3 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Fri, 12 Jul 2019 20:41:19 +0400 Subject: [PATCH] FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for switch_core_video.c --- src/switch_core_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }