]> granicus.if.org Git - python/commitdiff
do not leak addrinfo in configure test
authorBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2016 22:54:24 +0000 (15:54 -0700)
committerBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2016 22:54:24 +0000 (15:54 -0700)
configure
configure.ac

index f5ff3cea448ba6e31debe4a472eecbbd83d3c0b1..462c968530e3bee28a4942a3d53535cf2fca8562 100755 (executable)
--- a/configure
+++ b/configure
@@ -12581,6 +12581,8 @@ int main()
         break;
       }
     }
+    freeaddrinfo(aitop);
+    aitop = NULL;
   }
 
   if (!(inet4 == 0 || inet4 == 2))
index 2ccb4e2df6911d2324139190e207298881a24f68..fb2ae67b789e0bfb9e203ca83da6630ad889b344 100644 (file)
@@ -3700,6 +3700,8 @@ int main()
         break;
       }
     }
+    freeaddrinfo(aitop);
+    aitop = NULL;
   }
 
   if (!(inet4 == 0 || inet4 == 2))