• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2c: Copyright (C) Daniel Stenberg, <daniel.se>, et al.
3SPDX-License-Identifier: curl
4Title: curl_url_cleanup
5Section: 3
6Source: libcurl
7See-also:
8  - CURLOPT_CURLU (3)
9  - curl_url (3)
10  - curl_url_dup (3)
11  - curl_url_get (3)
12  - curl_url_set (3)
13---
14
15# NAME
16
17curl_url_cleanup - free the URL handle
18
19# SYNOPSIS
20
21~~~c
22#include <curl/curl.h>
23
24void curl_url_cleanup(CURLU *handle);
25~~~
26
27# DESCRIPTION
28
29Frees all the resources associated with the given *CURLU* handle!
30
31Passing in a NULL pointer in *handle* makes this function return
32immediately with no action.
33
34# EXAMPLE
35
36~~~c
37int main(void)
38{
39  CURLU *url = curl_url();
40  curl_url_set(url, CURLUPART_URL, "https://example.com", 0);
41  curl_url_cleanup(url);
42}
43~~~
44
45# AVAILABILITY
46
47Added in 7.62.0
48
49# RETURN VALUE
50
51none
52