svn rev #22284: trunk/src/lib/krb5/os/
ghudson@MIT.EDU
ghudson at MIT.EDU
Tue Apr 28 00:30:04 EDT 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=22284
Commit By: ghudson
Log Message:
Fix a memory leak in module_locate_server.
Changed Files:
U trunk/src/lib/krb5/os/locate_kdc.c
Modified: trunk/src/lib/krb5/os/locate_kdc.c
===================================================================
--- trunk/src/lib/krb5/os/locate_kdc.c 2009-04-27 23:48:22 UTC (rev 22283)
+++ trunk/src/lib/krb5/os/locate_kdc.c 2009-04-28 04:30:03 UTC (rev 22284)
@@ -624,6 +624,7 @@
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 @@
"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;
}
More information about the cvs-krb5
mailing list