ffmpeg/libavfilter
Ganesh Ajjanagadde 00c3220149 lavfi/show_palette: fix memory leak
Recent commits 6aaac24d72a7da631173209841a3944fcb4a3309 and
3835554bf8ed78539a3492c239f979c0ab03a15f made progress towards cleaning
up usage of the formats API, and in particular fixed possible NULL pointer
dereferences.

This commit addresses the issue of possible resource leaks when some intermediate
call fails. Unfortunately, even leaving aside this subtle intermediate
failure aspect, commit 8087632027d755cd32ccc9e91ea025e276197055 was only
partially successful in addressing memleaks. Hopefully, this commit
fixes the issue completely.

Tested with valgrind --leak-check=full --show-leak-kinds=all, and manual simulation
of malloc/realloc failures.

Fixes: CID 1270818.

Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-12-09 07:57:37 -05:00
..
2015-10-26 20:56:17 +01:00
2015-11-08 18:50:26 +01:00
2015-10-28 03:26:08 +01:00
2015-10-26 23:24:30 -07:00
2014-08-13 01:00:38 +02:00
2015-12-04 17:52:57 +01:00
2015-01-06 10:02:11 +00:00
2015-01-05 01:45:49 +01:00
2015-12-04 17:52:57 +01:00
2015-11-01 18:52:50 -08:00
2015-03-20 09:41:32 +01:00
2015-11-09 08:09:41 +01:00
2015-08-18 10:24:01 -04:00
2015-09-12 02:14:44 +00:00
2015-01-09 17:26:31 +01:00
2015-10-10 17:33:43 +02:00
2015-10-22 10:44:30 -08:00
2015-11-09 08:09:41 +01:00
2015-10-10 17:33:43 +02:00