aboutsummaryrefslogtreecommitdiffstats
path: root/admin/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'admin/list.c')
-rw-r--r--admin/list.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/admin/list.c b/admin/list.c
index 5491aaa1a534..31be54611157 100644
--- a/admin/list.c
+++ b/admin/list.c
@@ -132,11 +132,12 @@ do_list(struct list_options *opt, const char *keytab_str)
for (i = 0; i< entry.aliases->len; i++) {
krb5_unparse_name_fixed(context, entry.principal, buf, sizeof(buf));
- rk_strpoolprintf(p, "%s%s", buf,
- i + 1 < entry.aliases->len ? ", " : "");
+ p = rk_strpoolprintf(p, "%s%s", buf,
+ i + 1 < entry.aliases->len ? ", " : "");
}
- rtbl_add_column_entry_by_id(table, 5, rk_strpoolcollect(p));
+ rtbl_add_column_entry_by_id(table, 5, (s = rk_strpoolcollect(p)));
+ free(s);
}
krb5_kt_free_entry(context, &entry);