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:
Juan RP 2019-06-18 15:16:05 +02:00
parent d16a2fc987
commit fd88298755

View File

@ -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++) {