summaryrefslogtreecommitdiff
path: root/lang/php70/patches/patch-ext_standard_php__dns.h
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php70/patches/patch-ext_standard_php__dns.h')
-rw-r--r--lang/php70/patches/patch-ext_standard_php__dns.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/lang/php70/patches/patch-ext_standard_php__dns.h b/lang/php70/patches/patch-ext_standard_php__dns.h
deleted file mode 100644
index 2ac269ddd65..00000000000
--- a/lang/php70/patches/patch-ext_standard_php__dns.h
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD: patch-ext_standard_php__dns.h,v 1.3 2016/12/20 07:22:19 maya Exp $
-
-Fix memory leak.
-
---- ext/standard/php_dns.h.orig 2016-04-28 18:13:00.000000000 +0000
-+++ ext/standard/php_dns.h
-@@ -32,9 +32,15 @@
- #elif defined(HAVE_RES_NSEARCH)
- #define php_dns_search(res, dname, class, type, answer, anslen) \
- res_nsearch(res, dname, class, type, answer, anslen);
-+#ifdef __GLIBC__
- #define php_dns_free_handle(res) \
-- res_nclose(res); \
-+ res_nclose(res); \
-+ php_dns_free_res(res)
-+#else
-+#define php_dns_free_handle(res) \
-+ res_ndestroy(res); \
- php_dns_free_res(res)
-+#endif
-
- #elif defined(HAVE_RES_SEARCH)
- #define php_dns_search(res, dname, class, type, answer, anslen) \