diff options
author | Greg Hudson <ghudson@mit.edu> | 2009-01-23 17:24:50 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2009-01-23 17:24:50 +0000 |
commit | b03e9bad2d507501ccd4c64f3af27910cae32cc4 (patch) | |
tree | 68126cd5a5ff12d21a5924671129b347f6e5fe40 | |
parent | 29e98730bfe3b7dfb72bead5577a928157ae5bca (diff) | |
download | krb5-b03e9bad2d507501ccd4c64f3af27910cae32cc4.zip krb5-b03e9bad2d507501ccd4c64f3af27910cae32cc4.tar.gz krb5-b03e9bad2d507501ccd4c64f3af27910cae32cc4.tar.bz2 |
In kadmin, free the correct item in an error case (fixes a double-free
and a memory leak).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21783 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/kadmin/cli/kadmin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index b2bda15..469deaa 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -1486,7 +1486,7 @@ void kadmin_getprinc(argc, argv) retval = krb5_unparse_name(context, dprinc.principal, &canon); if (retval) { com_err("get_principal", retval, "while canonicalizing principal"); - krb5_free_principal(context, princ); + kadm5_free_principal_ent(handle, &dprinc); return; } retval = krb5_unparse_name(context, dprinc.mod_name, &modcanon); |