提交 9a8811f4 编写于 作者: R Richard Shaffer 提交者: wm4

libavformat/http: Fix memory leak in get_cookies.

上级 9af71b32
......@@ -1103,6 +1103,7 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
snprintf(*cookies, str_size, "%s; %s=%s", tmp, cookie_entry->key, cookie_entry->value);
av_free(tmp);
}
av_dict_free(&cookie_params);
}
av_free(set_cookies);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册