lib/fetch/common.c: fix memleak in happy_eyeballs_connect.
Found by clang-analyzer. Bug Summary File: lib/fetch/common.c Warning: line 587, column 4 Potential leak of memory pointed to by 'pfd'
This commit is contained in:
parent
d16a2fc987
commit
fd88298755
@ -585,6 +585,7 @@ wait:
|
|||||||
if (!attempts) {
|
if (!attempts) {
|
||||||
error:
|
error:
|
||||||
netdb_seterr(EAI_FAIL);
|
netdb_seterr(EAI_FAIL);
|
||||||
|
free(pfd);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
for (i = 0; i < attempts; i++) {
|
for (i = 0; i < attempts; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user