mirror of
https://github.com/curl/curl.git
synced 2026-04-30 06:17:51 +03:00
Fix memory leak under low memory conditions.
This commit is contained in:
parent
94162d62ac
commit
08b9f73219
1 changed files with 4 additions and 1 deletions
|
|
@ -1316,8 +1316,11 @@ static CURLcode ftp_state_post_listtype(struct connectdata *conn)
|
|||
lstArg? " ": "",
|
||||
lstArg? lstArg: "" );
|
||||
|
||||
if(!cmd)
|
||||
if(!cmd) {
|
||||
if(lstArg)
|
||||
free(lstArg);
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
NBFTPSENDF(conn, "%s",cmd);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue