X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fftp.c;h=171a38a44325a373f11c91cb659667226450f372;hb=94d6650817110c639975d45df57b345e10b0e396;hp=d58d67dfe87ff107ab59ed0b9c65c76f34356bb3;hpb=1df3a351069dae4614ef23af6a08aab6d94a5cfb;p=wget diff --git a/src/ftp.c b/src/ftp.c index d58d67df..171a38a4 100644 --- a/src/ftp.c +++ b/src/ftp.c @@ -1371,7 +1371,9 @@ ftp_get_listing (struct url *u, ccon *con, struct fileinfo **f) DEBUGP ((_("Using %s as listing tmp file.\n"), quote (lf))); con->target = xstrdup (lf); + xfree (lf); err = ftp_loop_internal (u, NULL, con); + lf = xstrdup (con->target); xfree (con->target); con->target = old_target;