summaryrefslogtreecommitdiffstats
path: root/src/util/support/plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/support/plugins.c')
-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);