Double free and leak in kim_os_library_get_application_path
authorAlexandra Ellwood <lxs@mit.edu>
Fri, 17 Oct 2008 18:13:47 +0000 (18:13 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Fri, 17 Oct 2008 18:13:47 +0000 (18:13 +0000)
ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20885 dc483132-0cff-0310-8789-dd5450dbe970

src/kim/lib/mac/kim_os_library.c

index 2c4eb90d8a8d194978942cbf543e721fa6fe957c..556eeeb223f43fd4626e5c98949350ac448abe85 100644 (file)
@@ -199,7 +199,7 @@ kim_error kim_os_library_get_application_path (kim_string *out_path)
         }
         
         if (cfpath        ) { CFRelease (cfpath); }        
-        if (absolute_url  ) { CFRelease (bundle_url); }
+        if (absolute_url  ) { CFRelease (absolute_url); }
         if (bundle_url    ) { CFRelease (bundle_url); }
         if (resources_url ) { CFRelease (resources_url); }
         if (executable_url) { CFRelease (executable_url); }