Use krb5_free_default_realm instead of free on the results of
authorEzra Peisach <epeisach@mit.edu>
Thu, 31 Dec 2009 22:25:11 +0000 (22:25 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 31 Dec 2009 22:25:11 +0000 (22:25 +0000)
krb5_get_default_realm().

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23555 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/kpropd.c

index ce00c2c5d44c11e74b9af0a20f7da5c56d3805b1..e3bcd689ac5ba278cde82b4c7fb39bd0afe9887f 100644 (file)
@@ -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)