summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGregory Muchka <36249295+Greg-Muchka@users.noreply.github.com>2021-06-15 18:12:49 -0600
committerDaniel Stenberg <daniel@haxx.se>2021-06-21 14:05:49 +0200
commit62be0960858f18798f5f2bf662cbfd9ae3948eb4 (patch)
tree21bbc30441d585da96b344097725801c9747dc6b /m4
parent47386775ed53c0c4258ea9ec15d3499bb93a887f (diff)
downloadcurl-62be0960858f18798f5f2bf662cbfd9ae3948eb4.tar.gz
hostip: (macOS) free returned memory of SCDynamicStoreCopyProxies
From Apples documentation on SCDynamicStoreCopyProxies, "Return Value: A dictionary of key-value pairs that represent the current internet proxy settings, or NULL if no proxy settings have been defined or if an error occurred. You must release the returned value." Failure to release the returned value of SCDynamicStoreCopyProxies can result in a memory leak. Source: https://developer.apple.com/documentation/systemconfiguration/1517088-scdynamicstorecopyproxies Closes #7265
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-sysconfig.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/curl-sysconfig.m4 b/m4/curl-sysconfig.m4
index 0f6462fab..0af96ba93 100644
--- a/m4/curl-sysconfig.m4
+++ b/m4/curl-sysconfig.m4
@@ -21,7 +21,7 @@
#***************************************************************************
AC_DEFUN([CURL_DARWIN_SYSTEMCONFIGURATION], [
-AC_MSG_CHECKING([whether to link macOS SystemConfiguration framework])
+AC_MSG_CHECKING([whether to link macOS CoreFoundation and SystemConfiguration framework])
case $host_os in
darwin*)
AC_COMPILE_IFELSE([
@@ -41,7 +41,7 @@ case $host_os in
])
if test "x$build_for_macos" != xno; then
AC_MSG_RESULT(yes)
- LDFLAGS="$LDFLAGS -framework SystemConfiguration"
+ LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
else
AC_MSG_RESULT(no)
fi