Index: lib/libfetch/http.c =================================================================== --- lib/libfetch/http.c (revision 357911) +++ lib/libfetch/http.c (working copy) @@ -1852,7 +1852,7 @@ break; } if (new) - free(new); + fetchFreeURL(new); if (verbose) fetch_info("%d redirect to %s", conn->err, p);