er: klist print_tickets leaks 'str'
Change-Id: Ie86f3a9d64ceb6d44cd36be06700194b978247c9
This commit is contained in:
@@ -262,7 +262,6 @@ print_tickets (krb5_context context,
|
|||||||
printf ("%17s: %s\n", N_("Friendly name", ""), name);
|
printf ("%17s: %s\n", N_("Friendly name", ""), name);
|
||||||
free(name);
|
free(name);
|
||||||
}
|
}
|
||||||
free (str);
|
|
||||||
|
|
||||||
if(do_verbose) {
|
if(do_verbose) {
|
||||||
printf ("%17s: %d\n", N_("Cache version", ""),
|
printf ("%17s: %d\n", N_("Cache version", ""),
|
||||||
@@ -294,6 +293,7 @@ print_tickets (krb5_context context,
|
|||||||
} else {
|
} else {
|
||||||
printf ("{ \"cache\" : \"%s\", \"principal\" : \"%s\", ", fullname, str);
|
printf ("{ \"cache\" : \"%s\", \"principal\" : \"%s\", ", fullname, str);
|
||||||
}
|
}
|
||||||
|
free(str);
|
||||||
|
|
||||||
ret = krb5_cc_start_seq_get (context, ccache, &cursor);
|
ret = krb5_cc_start_seq_get (context, ccache, &cursor);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
Reference in New Issue
Block a user