kim_os_string_create_localized leaks CFStringRef
authorAlexandra Ellwood <lxs@mit.edu>
Fri, 10 Oct 2008 21:58:26 +0000 (21:58 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Fri, 10 Oct 2008 21:58:26 +0000 (21:58 +0000)
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

index 0529f3920763c4800316edbe875ff09afbbf10bb..5999021d7a76506932d5c48cf5a9c4e21be1094a 100644 (file)
@@ -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) {