Commit 77172129 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

free the URL string if that was allocated

parent ccb2b5d2
Loading
Loading
Loading
Loading
+4 −0
Changes for lib/url.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -235,6 +235,10 @@ void static urlfree(struct UrlData *data, bool totally)
    if(data->free_referer)
      free(data->referer);

    if(data->bits.urlstringalloc)
      /* the URL is allocated, free it! */
      free(data->url);

    cookie_cleanup(data->cookies);

    free(data);