Go to file
Nicholas Nethercote c61dd5fed2
c-hyper: fix a memory leak in Curl_http.
A request created with `hyper_request_new` must be consumed by either
`hyper_clientconn_send` or `hyper_request_free`.

This is not terrifically clear from the hyper docs --
`hyper_request_free` is documented only with "Free an HTTP request if
not going to send it on a client" -- but a perusal of the hyper code
confirms it.

This commit adds a `hyper_request_free` to the `error:` path in
`Curl_http` so that the request is consumed when an error occurs after
the request is created but before it is sent.

Fixes the first memory leak reported by Valgrind in #10803.

Closes #11729
2023-08-25 15:27:11 +02:00
.circleci CI: enable parallel make in more builds 2023-06-24 14:40:39 -07:00
.github workflows/macos.yml: disable zstd and alt-svc in the http-only build 2023-08-17 16:58:58 +02:00
.reuse cmake: add support for single libcurl compilation pass 2023-08-01 08:12:26 +00:00
CMake build: streamline non-UWP wincrypt detections 2023-08-13 13:51:19 +00:00
docs time-cond.d: mention what happens on a missing file 2023-08-24 23:04:32 +02:00
include system.h: add CURL_OFF_T definitions on HP-UX with HP aCC 2023-08-23 23:19:28 +02:00
lib c-hyper: fix a memory leak in Curl_http. 2023-08-25 15:27:11 +02:00
LICENSES copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
m4 egd: delete feature detection and related source code 2023-08-01 21:58:56 +00:00
packages os400: do not check translatable options at build time 2023-08-17 17:34:57 +02:00
plan9 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
projects tool: add "variable" support 2023-07-31 11:51:34 +02:00
scripts egd: delete feature detection and related source code 2023-08-01 21:58:56 +00:00
src spelling: use 'reuse' not 're-use' in code and elsewhere 2023-08-23 23:22:36 +02:00
tests misc: spellfixes 2023-08-25 13:21:07 +02:00
winbuild tool: add "variable" support 2023-07-31 11:51:34 +02:00
.azure-pipelines.yml CI: don't run CI jobs if only another CI was changed 2023-04-24 20:46:09 -07:00
.cirrus.yml cirrus: install everthing with pkg, avoid pip 2023-08-22 23:06:20 +02:00
.dcignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.dir-locals.el copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.git-blame-ignore-revs copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitattributes copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.mailmap mailmap: add Derzsi Dániel 2023-07-31 08:29:16 +02:00
acinclude.m4 build: streamline non-UWP wincrypt detections 2023-08-13 13:51:19 +00:00
appveyor.yml CI: make Appveyor job names unique 2023-06-28 01:07:21 -07:00
buildconf copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
buildconf.bat copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CHANGES curl.se: new home 2020-11-04 23:59:47 +01:00
CMakeLists.txt cmake: add GnuTLS option 2023-08-17 08:17:39 +02:00
configure.ac lib: --disable-bindlocal builds curl without local binding support 2023-08-17 17:17:59 +02:00
COPYING copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-config.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
GIT-INFO GIT-INFO: add --with-openssl 2023-05-14 23:22:23 +02:00
libcurl.def trace: make tracing available in non-debug builds 2023-08-03 17:32:25 +02:00
libcurl.pc.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
MacOSX-Framework copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am cmake: add support for single libcurl compilation pass 2023-08-01 08:12:26 +00:00
Makefile.dist copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
maketgz copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
README docs: minor grammar fixes 2022-09-29 10:44:12 +02:00
README.md README.md: updated link to opencollective 2023-06-02 11:29:15 +02:00
RELEASE-NOTES RELEASE-NOTES: synced 2023-08-25 13:56:46 +02:00
SECURITY.md copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.