← Commit list

00872d5c98

Daniel Stenberg
Daniel Stenberg
2025-11-10
SUCCESS Duration: 144s

Subject

rtmp: fix double-free on URL parse errors

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_rtmp.c+2 -3
@@ -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;
}