avformat/mpegts: fix memory leak with merge_pmt_versions=1