+2000-11-02 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * retr.c (retrieve_url): Free url before returning.
+ (retrieve_url): Free mynewloc before returning.
+ Spotted by Mark A. Mankins <Mankins_Mark@prc.com>.
+
2000-11-02 Hrvoje Niksic <hniksic@arsdigita.com>
* url.c (parseurl): Remove possible reading past the end of
logprintf (LOG_NOTQUIET, "%s: %s.\n", url, uerrmsg (result));
freeurl (u, 1);
free_slist (redirections);
+ free (url);
return result;
}
logputs (LOG_NOTQUIET, _("Could not find proxy host.\n"));
freeurl (u, 1);
free_slist (redirections);
+ free (url);
return PROXERR;
}
/* Parse the proxy URL. */
logprintf (LOG_NOTQUIET, _("Proxy %s: Must be HTTP.\n"), proxy);
freeurl (u, 1);
free_slist (redirections);
+ free (url);
return PROXERR;
}
u->proto = URLHTTP;
freeurl (newloc_struct, 1);
freeurl (u, 1);
free_slist (redirections);
+ free (url);
+ free (mynewloc);
return result;
}
freeurl (newloc_struct, 1);
freeurl (u, 1);
free_slist (redirections);
+ free (url);
+ free (mynewloc);
return WRONGCODE;
}
freeurl (newloc_struct, 1);
freeurl (u, 1);
free_slist (redirections);
+ free (url);
+ free (mynewloc);
return WRONGCODE;
}
if (!opt.quota)
return 0;
if (opt.downloaded_overflow)
- /* We don't really no. (Wildly) assume not. */
+ /* We don't really know. (Wildly) assume not. */
return 0;
return opt.downloaded > opt.quota;