avformat/utils: fix memory leak in avformat_free_context