diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 5 |
1 files changed, 4 insertions, 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); |