diff --git a/lib/ftp.c b/lib/ftp.c index 8f47be1eb9..65dfa8362b 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -773,7 +773,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status) path = curl_unescape(conn->path, 0); /* get the "raw" path */ if(!path) - CURLE_OUT_OF_MEMORY; + return CURLE_OUT_OF_MEMORY; flen = ftp->file?strlen(ftp->file):0; /* file is "raw" already */ dlen = strlen(path)-flen;