Fixes: CID1559901 Resource leak Sponsored-by: Sovereign Tech Fund Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>