diff --git a/lib/fetch/common.c b/lib/fetch/common.c index e61638b8..d517545c 100644 --- a/lib/fetch/common.c +++ b/lib/fetch/common.c @@ -585,6 +585,7 @@ wait: if (!attempts) { error: netdb_seterr(EAI_FAIL); + free(pfd); return -1; } for (i = 0; i < attempts; i++) {