• Ganesh Ajjanagadde's avatar
    lavfi/vf_overlay: fix memory leaks · 301c2784
    Ganesh Ajjanagadde authored
    Recent commits 6aaac24d and
    3835554b 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.
    
    Tested with valgrind --leak-check=full --show-leak-kinds=all, and manual simulation
    of malloc/realloc failures.
    
    Fixes: CID 1338327.
    Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
    301c2784
vf_overlay.c 25.3 KB