projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e79dd13
)
Fix memory leak. closedir() was never being called after successful opendir()
author
Ezra Peisach
<epeisach@mit.edu>
Thu, 20 Apr 2006 15:55:20 +0000
(15:55 +0000)
committer
Ezra Peisach
<epeisach@mit.edu>
Thu, 20 Apr 2006 15:55:20 +0000
(15:55 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17946
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/support/plugins.c
patch
|
blob
|
history
diff --git
a/src/util/support/plugins.c
b/src/util/support/plugins.c
index 424ec70b3e65c210ff46450441f7a4fa9e997a22..320dd6e839278db57b570c693f35f6bfd03e939b 100644
(file)
--- a/
src/util/support/plugins.c
+++ b/
src/util/support/plugins.c
@@
-242,6
+242,7
@@
krb5int_open_plugin_dir (const char *dirname,
for (i = 0; i < nh; i++)
dlclose(h[i].dlhandle);
free(h);
+ closedir(dir);
return error;
}
h = newh;
@@
-255,6
+256,7
@@
krb5int_open_plugin_dir (const char *dirname,
h = newh;
MAKE_NULL_HANDLE (&h[nh]);
dirhandle->files = h;
+ closedir(dir);
return 0;
/* #elif _WIN32 */
#else