[Python-checkins] cpython (2.7): 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/fecbb1fa241f
changeset:   103161:fecbb1fa241f
branch:      2.7
parent:      103152:3e18c4dda388
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
@@ -11728,6 +11728,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
@@ -3422,6 +3422,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