libswscale/utils.c: Fix bug #8255
authorGautam Ramakrishnan <gautamramk@gmail.com>
Sun, 9 Feb 2020 18:33:09 +0000 (00:03 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 9 Feb 2020 22:33:18 +0000 (23:33 +0100)
commitda399e213523867dea1229e8f0fd955fed0410e7
tree01bed955c1b11dbbaecff4357e423e426416f2b4
parent5c151e1491dd609ac5c8a8fbea42f21178a682db
libswscale/utils.c: Fix bug #8255

Bug #8255 points out a double free error in libwscale/utils.c file.
The double free is because the pointer to cascaded_context of an
sw_context is not set to NULL after freeing it. When the sw_context
is later freed, sws_freeContext is called on the cascaded_context,
causing a double free.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libswscale/utils.c