=== modified file 'src/ftp-basic.c' --- src/ftp-basic.c 2011-01-01 12:19:37 +0000 +++ src/ftp-basic.c 2012-04-12 08:27:36 +0000 @@ -524,7 +524,10 @@ for (s += 4; *s && !c_isdigit (*s); s++) ; if (!*s) - return FTPINVPASV; + { + xfree (respline); + return FTPINVPASV; + } for (i = 0; i < 6; i++) { tmp[i] = 0; @@ -593,7 +596,10 @@ for (s += 4; *s && !c_isdigit (*s); s++) ; if (!*s) - return FTPINVPASV; + { + xfree (respline); + return FTPINVPASV; + } /* First, get the address family */ af = 0;