mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
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
This commit is contained in:
parent
47386775ed
commit
62be096085
3 changed files with 30 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue