From e568ea28b20e849af8907f4f40553ac01a9f7ad4 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 30 Jul 2009 09:47:24 +0200 Subject: [PATCH] No need to check for NULL, principal is allocated. --- kuser/klist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kuser/klist.c b/kuser/klist.c index 6f2d9dec0..b5145eda6 100644 --- a/kuser/klist.c +++ b/kuser/klist.c @@ -537,8 +537,8 @@ list_caches(void) free(name); } krb5_cc_close(context, id); - if (principal) - krb5_free_principal(context, principal); + + krb5_free_principal(context, principal); } krb5_cc_cache_end_seq_get(context, cursor);