summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2006-04-25 21:24:33 +0000
committerAlexandra Ellwood <lxs@mit.edu>2006-04-25 21:24:33 +0000
commitc838fcb3fa4cecd8f6e8f00858da689cd281ea13 (patch)
tree074722ebfd9a2d2b2f5e16acb43af6a8f64698cc
parentb059a3adda55fe90f2758be9d010efb63c9b2bc0 (diff)
downloadkrb5-c838fcb3fa4cecd8f6e8f00858da689cd281ea13.tar.gz
krb5-c838fcb3fa4cecd8f6e8f00858da689cd281ea13.tar.xz
krb5-c838fcb3fa4cecd8f6e8f00858da689cd281ea13.zip
Updated comments to explain how the CFBundles get unloaded.
(And not to call CFBundleUnloadExecutable which is refcounted.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17962 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/util/support/plugins.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c
index d134da4bb..a4780f38f 100644
--- a/src/util/support/plugins.c
+++ b/src/util/support/plugins.c
@@ -256,7 +256,8 @@ krb5int_close_plugin (struct plugin_file_handle *h)
if (h->dlhandle != NULL) { dlclose(h->dlhandle); }
#endif
#if USE_CFBUNDLE
- /* Do not unload. CFBundleUnloadExecutable is not ref counted. */
+ /* Do not call CFBundleUnloadExecutable because it's not ref counted.
+ * CFRelease will unload the bundle if the internal refcount goes to zero. */
if (h->bundle != NULL) { CFRelease (h->bundle); }
#endif
free (h);