[31288] in CVS-changelog-for-Kerberos-V5
krb5 commit: Fix memory leak in macOS 11 ccache client
daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Fri Jan 12 19:23:53 2024
From: ghudson@mit.edu
To: cvs-krb5@mit.edu
Message-Id: <20240113002346.6401F1018D4@krbdev.mit.edu>
Date: Fri, 12 Jan 2024 19:23:46 -0500 (EST)
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
https://github.com/krb5/krb5/commit/52fe67623b7205d91ceac855651e8c17f56b10c8
commit 52fe67623b7205d91ceac855651e8c17f56b10c8
Author: Anthony Sottile <anthony.sottile@sentry.io>
Date: Fri Jan 12 19:10:03 2024 -0500
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
src/lib/krb5/ccache/cc_api_macos.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/krb5/ccache/cc_api_macos.c b/src/lib/krb5/ccache/cc_api_macos.c
index 3bf30c9fd..34b1c350f 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;
}
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5