gnurl_url_cleanup(3)
π gnurl_url_cleanup(3) β the libgnurl manual, bestie edition π
okay so real talk, this page is from the libgnurl Manual and it's about the single most underrated act of self-care in all of C: freeing your CURLU handle when you're done with it. no cap. β¨
πΈ NAME πΈ
curl_url_cleanup β free a CURLU handle. that's it. that's the whole job. and she does it flawlessly. π
π¦ SYNOPSIS π¦
#include <gnurl/curl.h>
void curl_url_cleanup(CURLU *handle);
like yes, that's the entire signature. one function, one pointer, zero drama. we love a low-maintenance icon. π
β¨ DESCRIPTION β¨
Frees all the resources associated with the given CURLU handle!
and when I say all, I mean all, bestie. every last one. the whole vibe gets returned to the universe. π§ this is your "okay I'm logging off, goodnight" moment for a URL handle. do it. your valgrind output will thank you. π₯
π«Ά RETURN VALUE π«Ά
none β she gives you nothing back, and honestly? that's the point. no return value, no expectations, just closure. literally. π
π EXAMPLE π
CURLU *url = curl_url();
curl_url_set(url, CURLUPART_URL, "https://example.com", 0);
curl_url_cleanup(url);
see how clean that is?? make it, fill it, free it. the holy trinity of handle hygiene. π this is the whole lifecycle and it's giving main character energy from start to finish. π
β AVAILABILITY β
Added in curl 7.62.0 β so if you're on anything older, sorry babe, this one's not for you yet. π
π SEE ALSO π
the whole friend group, fr fr. go read them, iykyk. π
okay bye ily, this page was brought to you by libcurl, dated 6 Aug 2018, and filed under gnurl_url_cleanup(3) β now go free that handle. mwah. π
ππΈ
π¦ where this page comes from
- nixos 26.05: libgnurl 7.72.0
- nixpkgs unstable: libgnurl 7.72.0
- Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms