[Python-checkins] cpython (3.5): do not leak addrinfo in configure test

benjamin.peterson python-checkins at python.org
Tue Sep 6 18:57:59 EDT 2016


https://hg.python.org/cpython/rev/c90f8c994048
changeset:   103159:c90f8c994048
branch:      3.5
parent:      103146:9bbf0b31da48
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Sep 06 15:54:24 2016 -0700
summary:
  do not leak addrinfo in configure test

files:
  configure    |  2 ++
  configure.ac |  2 ++
  2 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -12581,6 +12581,8 @@
         break;
       }
     }
+    freeaddrinfo(aitop);
+    aitop = NULL;
   }
 
   if (!(inet4 == 0 || inet4 == 2))
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -3700,6 +3700,8 @@
         break;
       }
     }
+    freeaddrinfo(aitop);
+    aitop = NULL;
   }
 
   if (!(inet4 == 0 || inet4 == 2))

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list