From 01c340da23075b6f3dc1c5e61c31b1b7d38652ca Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 6 Sep 2016 15:54:24 -0700 Subject: [PATCH] do not leak addrinfo in configure test --- configure | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index f5ff3cea448..462c968530e 100755 --- a/configure +++ b/configure @@ -12581,6 +12581,8 @@ int main() break; } } + freeaddrinfo(aitop); + aitop = NULL; } if (!(inet4 == 0 || inet4 == 2)) diff --git a/configure.ac b/configure.ac index 2ccb4e2df69..fb2ae67b789 100644 --- a/configure.ac +++ b/configure.ac @@ -3700,6 +3700,8 @@ int main() break; } } + freeaddrinfo(aitop); + aitop = NULL; } if (!(inet4 == 0 || inet4 == 2))