projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd0a937
)
Fix a memory leak in module_locate_server
author
Greg Hudson
<ghudson@mit.edu>
Tue, 28 Apr 2009 04:30:03 +0000
(
04:30
+0000)
committer
Greg Hudson
<ghudson@mit.edu>
Tue, 28 Apr 2009 04:30:03 +0000
(
04:30
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22284
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/os/locate_kdc.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/locate_kdc.c
b/src/lib/krb5/os/locate_kdc.c
index 7326435fa4f3d1c0f1fa1206f8ba09b539d9355c..0dc385a6c045f698a88e49060690a1a9699b2017 100644
(file)
--- a/
src/lib/krb5/os/locate_kdc.c
+++ b/
src/lib/krb5/os/locate_kdc.c
@@
-624,6
+624,7
@@
module_locate_server (krb5_context ctx, const krb5_data *realm,
char *realmz; /* NUL-terminated realm */
int i;
struct module_callback_data cbdata = { 0, };
+ const char *msg;
Tprintf("in module_locate_server\n");
cbdata.lp = addrlist;
@@
-639,7
+640,8
@@
module_locate_server (krb5_context ctx, const krb5_data *realm,
"service_locator", &ptrs, &ctx->err);
if (code) {
Tprintf("error looking up plugin symbols: %s\n",
- krb5_get_error_message(ctx, code));
+ (msg = krb5_get_error_message(ctx, code)));
+ krb5_free_error_message(ctx, msg);
return KRB5_PLUGIN_NO_HANDLE;
}