• Ganesh Ajjanagadde's avatar
    lavfi/af_amix: fix memory leak · 89bbf019
    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 1250334.
    Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
    89bbf019
af_amix.c 16.8 KB