mirror of
https://github.com/curl/curl.git
synced 2026-07-23 02:17:21 +03:00
rtmp: fix double-free on URL parse errors
Reported-by: Stanislav Fort (Aisle Research) Closes #19438
This commit is contained in:
parent
79d3e1d7d4
commit
00872d5c98
1 changed files with 2 additions and 3 deletions
|
|
@ -240,10 +240,9 @@ static CURLcode rtmp_setup_connection(struct Curl_easy *data,
|
|||
|
||||
RTMP_Init(r);
|
||||
RTMP_SetBufferMS(r, DEF_BUFTIME);
|
||||
if(!RTMP_SetupURL(r, data->state.url)) {
|
||||
RTMP_Free(r);
|
||||
if(!RTMP_SetupURL(r, data->state.url))
|
||||
/* rtmp_conn_dtor() performs the cleanup */
|
||||
return CURLE_URL_MALFORMAT;
|
||||
}
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue