From 940fd71e070584c75cc41a212b0f17364eb08c72 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Fri, 10 Oct 2008 21:58:26 +0000 Subject: [PATCH] kim_os_string_create_localized leaks CFStringRef ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20865 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kim/lib/mac/kim_os_string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kim/lib/mac/kim_os_string.c b/src/kim/lib/mac/kim_os_string.c index 0529f3920..5999021d7 100644 --- a/src/kim/lib/mac/kim_os_string.c +++ b/src/kim/lib/mac/kim_os_string.c @@ -67,6 +67,8 @@ kim_error kim_os_string_create_localized (kim_string *out_string, if (!err && cfstring) { err = kim_os_string_create_from_cfstring (&string, cfstring); } + + if (cfstring) { CFRelease (cfstring); } } if (!err && !string) { -- 2.26.2