mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
libavformat/http: Fix memory leak in get_cookies.
This commit is contained in:
parent
9af71b326f
commit
9a8811f478
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user