summaryrefslogtreecommitdiff
path: root/external/python3
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-23 16:49:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-23 16:50:16 +0200
commitfa2fcc2074ac102d8592fdf2b429ef369dd501f3 (patch)
treedfbba0b3d6e0f77b5178db99838a4e3de0c080b2 /external/python3
parent67825fe270d52b78c81cc1c1c37486c11bad394e (diff)
external/python3: Fix memory leak in configure check code
...that LeakSanitizer would complain about, causing the check to erroneously fail. Change-Id: Ieaef38576afd6196d38f395d48fd1bc92b22ddb6
Diffstat (limited to 'external/python3')
-rw-r--r--external/python3/UnpackedTarball_python3.mk1
-rw-r--r--external/python3/python-lsan.patch.019
2 files changed, 20 insertions, 0 deletions
diff --git a/external/python3/UnpackedTarball_python3.mk b/external/python3/UnpackedTarball_python3.mk
index d6a1d0473e44..49a56e082862 100644
--- a/external/python3/UnpackedTarball_python3.mk
+++ b/external/python3/UnpackedTarball_python3.mk
@@ -30,6 +30,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,python3,\
external/python3/python-3.3.3-py17797.patch.1 \
external/python3/python-3.3.3-msvc2012-winxp.patch.1 \
external/python3/python-3.3.5-pyexpat-symbols.patch.1 \
+ external/python3/python-lsan.patch.0 \
))
ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD SOLARIS,$(OS)),)
diff --git a/external/python3/python-lsan.patch.0 b/external/python3/python-lsan.patch.0
new file mode 100644
index 000000000000..3796904bed4e
--- /dev/null
+++ b/external/python3/python-lsan.patch.0
@@ -0,0 +1,19 @@
+--- configure
++++ configure
+@@ -11821,6 +11821,7 @@
+ break;
+ }
+ }
++ freeaddrinfo(aitop);
+ }
+
+ if (!(inet4 == 0 || inet4 == 2))
+@@ -11828,8 +11829,6 @@
+ if (!(inet6 == 0 || inet6 == 2))
+ goto bad;
+
+- if (aitop)
+- freeaddrinfo(aitop);
+ return 0;
+
+ bad: