]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix memory leak in macOS 11 ccache client
authorAnthony Sottile <anthony.sottile@sentry.io>
Sat, 13 Jan 2024 00:10:03 +0000 (19:10 -0500)
committerGreg Hudson <ghudson@mit.edu>
Sat, 13 Jan 2024 00:23:10 +0000 (19:23 -0500)
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

src/lib/krb5/ccache/cc_api_macos.c

index 3bf30c9fd0e99614a0a916f70dc3b95fd7040167..34b1c350f64037083d57b64b716e398e994f8541 100644 (file)
@@ -219,7 +219,7 @@ cleanup:
     if (reply != NULL)
         xpc_release(reply);
     if (conn != NULL)
-        xpc_connection_cancel(conn);
+        xpc_release(conn);
     return ret;
 }