From: Ezra Peisach Date: Thu, 31 Dec 2009 22:25:11 +0000 (+0000) Subject: Use krb5_free_default_realm instead of free on the results of X-Git-Tag: krb5-1.8-alpha1~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=25fad8fdc9b367fed169344f178d014e76afc049;p=krb5.git Use krb5_free_default_realm instead of free on the results of krb5_get_default_realm(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23555 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index ce00c2c5d..e3bcd689a 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -966,8 +966,8 @@ done: _("while closing default ccache")); exit(1); } - if (def_realm) - free(def_realm); + if (def_realm && kpropd_context) + krb5_free_default_realm(kpropd_context, def_realm); if (server_handle) kadm5_destroy((void *)server_handle); if (kpropd_context)