blob: 36455fc0be729ba39f7915280227460c2c9fdb63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
---
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Title: curl_url_cleanup
Section: 3
Source: libcurl
See-also:
- CURLOPT_CURLU (3)
- curl_url (3)
- curl_url_dup (3)
- curl_url_get (3)
- curl_url_set (3)
Protocol:
- All
Added-in: 7.62.0
---
# NAME
curl_url_cleanup - free the URL handle
# SYNOPSIS
~~~c
#include <curl/curl.h>
void curl_url_cleanup(CURLU *handle);
~~~
# DESCRIPTION
Frees all the resources associated with the given *CURLU* handle.
Passing in a NULL pointer in *handle* makes this function return
immediately with no action.
Any use of the **handle** after this function has been called and have
returned, is illegal.
# %PROTOCOLS%
# EXAMPLE
~~~c
int main(void)
{
CURLU *url = curl_url();
curl_url_set(url, CURLUPART_URL, "https://example.com", 0);
curl_url_cleanup(url);
}
~~~
# %AVAILABILITY%
# RETURN VALUE
none
|