mirror of
https://github.com/mirror/wget.git
synced 2025-02-28 21:00:25 +08:00
Fix memory leak.
This commit is contained in:
parent
fd582e4543
commit
f1d4aeaffb
@ -1,3 +1,7 @@
|
|||||||
|
2012-04-21 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
|
* ftp-basic.c (ftp_pasv): Fix memory leak.
|
||||||
|
|
||||||
2009-06-14 Phil Pennock <mutt-dev@spodhuis.org> (tiny change)
|
2009-06-14 Phil Pennock <mutt-dev@spodhuis.org> (tiny change)
|
||||||
* host.h: Declare `is_valid_ip_address'.
|
* host.h: Declare `is_valid_ip_address'.
|
||||||
* host.c (is_valid_ip_address): New function.
|
* host.c (is_valid_ip_address): New function.
|
||||||
|
@ -524,7 +524,10 @@ ftp_pasv (int csock, ip_address *addr, int *port)
|
|||||||
for (s += 4; *s && !c_isdigit (*s); s++)
|
for (s += 4; *s && !c_isdigit (*s); s++)
|
||||||
;
|
;
|
||||||
if (!*s)
|
if (!*s)
|
||||||
return FTPINVPASV;
|
{
|
||||||
|
xfree (respline);
|
||||||
|
return FTPINVPASV;
|
||||||
|
}
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
{
|
{
|
||||||
tmp[i] = 0;
|
tmp[i] = 0;
|
||||||
@ -593,7 +596,10 @@ ftp_lpsv (int csock, ip_address *addr, int *port)
|
|||||||
for (s += 4; *s && !c_isdigit (*s); s++)
|
for (s += 4; *s && !c_isdigit (*s); s++)
|
||||||
;
|
;
|
||||||
if (!*s)
|
if (!*s)
|
||||||
return FTPINVPASV;
|
{
|
||||||
|
xfree (respline);
|
||||||
|
return FTPINVPASV;
|
||||||
|
}
|
||||||
|
|
||||||
/* First, get the address family */
|
/* First, get the address family */
|
||||||
af = 0;
|
af = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user