Use avformat_free_context to free a format context that failed to open