From 25fad8fdc9b367fed169344f178d014e76afc049 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 31 Dec 2009 22:25:11 +0000 Subject: [PATCH] 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 --- src/slave/kpropd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.26.2