]> git.ipfire.org Git - thirdparty/curl.git/commit
hostip: (macOS) free returned memory of SCDynamicStoreCopyProxies
authorGregory Muchka <36249295+Greg-Muchka@users.noreply.github.com>
Wed, 16 Jun 2021 00:12:49 +0000 (18:12 -0600)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 21 Jun 2021 12:05:49 +0000 (14:05 +0200)
commit62be0960858f18798f5f2bf662cbfd9ae3948eb4
tree21bbc30441d585da96b344097725801c9747dc6b
parent47386775ed53c0c4258ea9ec15d3499bb93a887f
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
CMakeLists.txt
lib/hostip.c
m4/curl-sysconfig.m4