aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Sottile <anthony.sottile@sentry.io>2024-01-12 19:10:03 -0500
committerGreg Hudson <ghudson@mit.edu>2024-01-12 19:23:10 -0500
commit52fe67623b7205d91ceac855651e8c17f56b10c8 (patch)
treeeaeaa1e365bf77e5b279cc35dca0b04532242e73
parentec71ac1cabbb3926f8ffaf71e1ad007e4e56e0e5 (diff)
downloadkrb5-52fe67623b7205d91ceac855651e8c17f56b10c8.zip
krb5-52fe67623b7205d91ceac855651e8c17f56b10c8.tar.gz
krb5-52fe67623b7205d91ceac855651e8c17f56b10c8.tar.bz2
Fix memory leak in macOS 11 ccache client
In get_primary_name(), use the proper function to free conn. [ghudson@mit.edu: wrote commit message] ticket: 9109 tags: pullup target_version: 1.21-next
-rw-r--r--src/lib/krb5/ccache/cc_api_macos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/krb5/ccache/cc_api_macos.c b/src/lib/krb5/ccache/cc_api_macos.c
index 3bf30c9..34b1c35 100644
--- a/src/lib/krb5/ccache/cc_api_macos.c
+++ b/src/lib/krb5/ccache/cc_api_macos.c
@@ -219,7 +219,7 @@ cleanup:
if (reply != NULL)
xpc_release(reply);
if (conn != NULL)
- xpc_connection_cancel(conn);
+ xpc_release(conn);
return ret;
}