[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 132/151: multi: free sockhash on OOM
From: |
gnunet |
Subject: |
[gnurl] 132/151: multi: free sockhash on OOM |
Date: |
Fri, 20 Dec 2019 14:27:21 +0100 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit 29ca9fc596c808c0ea716681af4743914f4003f5
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Dec 13 17:45:21 2019 +0100
multi: free sockhash on OOM
This would otherwise leak memory in the error path.
Detected by torture test 1540.
Closes #4713
---
lib/multi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/multi.c b/lib/multi.c
index cc11ea617..6d819b4aa 100755
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -260,6 +260,7 @@ static struct Curl_sh_entry *sh_addentry(struct curl_hash
*sh,
/* make/add new hash entry */
if(!Curl_hash_add(sh, (char *)&s, sizeof(curl_socket_t), check)) {
+ Curl_hash_destroy(&check->transfers);
free(check);
return NULL; /* major failure */
}
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 117/151: doh: make it behave when built without proxy support, (continued)
- [gnurl] 117/151: doh: make it behave when built without proxy support, gnunet, 2019/12/20
- [gnurl] 120/151: lib1557: fix mem-leak in OOM, gnunet, 2019/12/20
- [gnurl] 121/151: lib1559: fix mem-leak in OOM, gnunet, 2019/12/20
- [gnurl] 126/151: ntlm_wb: fix double-free in OOM, gnunet, 2019/12/20
- [gnurl] 124/151: unit1620: fix bad free in OOM, gnunet, 2019/12/20
- [gnurl] 128/151: azure: add a torture test, gnunet, 2019/12/20
- [gnurl] 130/151: hostip: suppress compiler warning, gnunet, 2019/12/20
- [gnurl] 136/151: lib1591: free memory properly on OOM, in the trailers callback, gnunet, 2019/12/20
- [gnurl] 138/151: winbuild: Document CURL_STATICLIB requirement for static libcurl, gnunet, 2019/12/20
- [gnurl] 142/151: KNOWN_BUGS: LDAP on Windows doesn't work, gnunet, 2019/12/20
- [gnurl] 132/151: multi: free sockhash on OOM,
gnunet <=
- [gnurl] 135/151: runtests: --repeat=[num] to repeat tests, gnunet, 2019/12/20
- [gnurl] 133/151: azure: add a torture test on mac, gnunet, 2019/12/20
- [gnurl] 143/151: KNOWN_BUGS: Connection information when using TCP Fast Open, gnunet, 2019/12/20
- [gnurl] 127/151: azure: make the default build use --enable-debug --enable-werror, gnunet, 2019/12/20
- [gnurl] 131/151: tests: use DoH feature for DoH tests, gnunet, 2019/12/20
- [gnurl] 144/151: KNOWN_BUGS: TLS session cache doesn't work with TFO, gnunet, 2019/12/20
- [gnurl] 140/151: cirrus: Switch to the FreeBSD 12.1 point release & enable more tests., gnunet, 2019/12/20
- [gnurl] 145/151: Revert "checksrc: fix regexp for ASSIGNWITHINCONDITION", gnunet, 2019/12/20
- [gnurl] 122/151: unit1607: fix mem-leak in OOM, gnunet, 2019/12/20
- [gnurl] 134/151: RELEASE-NOTES: synced, gnunet, 2019/12/20