1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 12:35:04 -05:00

Fix memory leak under low memory conditions.

This commit is contained in:
Yang Tse 2007-10-02 19:19:47 +00:00
parent 94162d62ac
commit 08b9f73219

View File

@ -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);