]> sjero.net Git - wget/blobdiff - src/retr.c
[svn] Update copyright blurbs with the year 2000.
[wget] / src / retr.c
index 5f9327a3d75f292166f3dba3243f42e4282813b4..f60976d808ff1540266e1a44dde7a1afde4ba667 100644 (file)
@@ -1,5 +1,5 @@
 /* File retrieval.
-   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
 
 This file is part of Wget.
 
@@ -344,6 +344,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
       logprintf (LOG_NOTQUIET, "%s: %s.\n", url, uerrmsg (result));
       freeurl (u, 1);
       free_slist (redirections);
+      free (url);
       return result;
     }
 
@@ -379,6 +380,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
          logputs (LOG_NOTQUIET, _("Could not find proxy host.\n"));
          freeurl (u, 1);
          free_slist (redirections);
+         free (url);
          return PROXERR;
        }
       /* Parse the proxy URL.  */
@@ -391,6 +393,7 @@ retrieve_url (const char *origurl, char **file, char **newloc,
            logprintf (LOG_NOTQUIET, _("Proxy %s: Must be HTTP.\n"), proxy);
          freeurl (u, 1);
          free_slist (redirections);
+         free (url);
          return PROXERR;
        }
       u->proto = URLHTTP;
@@ -452,6 +455,8 @@ retrieve_url (const char *origurl, char **file, char **newloc,
          freeurl (newloc_struct, 1);
          freeurl (u, 1);
          free_slist (redirections);
+         free (url);
+         free (mynewloc);
          return result;
        }
 
@@ -469,6 +474,8 @@ retrieve_url (const char *origurl, char **file, char **newloc,
          freeurl (newloc_struct, 1);
          freeurl (u, 1);
          free_slist (redirections);
+         free (url);
+         free (mynewloc);
          return WRONGCODE;
        }
 
@@ -481,6 +488,8 @@ retrieve_url (const char *origurl, char **file, char **newloc,
          freeurl (newloc_struct, 1);
          freeurl (u, 1);
          free_slist (redirections);
+         free (url);
+         free (mynewloc);
          return WRONGCODE;
        }
 
@@ -600,7 +609,7 @@ downloaded_exceeds_quota (void)
   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;