lavf/hlsenc: fix memory leak