From fd88298755c86e2ff8b4521c31f1e1ba17c7bb70 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 18 Jun 2019 15:16:05 +0200 Subject: [PATCH] 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' --- lib/fetch/common.c | 1 + 1 file changed, 1 insertion(+) 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++) {