(check_KRB5SignedPath): free KRB5SignedPath on successful completion

too, not just the error cases.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18827 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-22 15:54:37 +00:00
parent 083bc44bdc
commit 87500b6c61

View File

@@ -290,13 +290,14 @@ check_KRB5SignedPath(krb5_context context,
}
ret = copy_KRB5SignedPathPrincipals(*delegated, sp.delegated);
free_KRB5SignedPath(&sp);
if (ret) {
free_KRB5SignedPath(&sp);
free(*delegated);
*delegated = NULL;
return ret;
}
}
free_KRB5SignedPath(&sp);
} else {
if (require_signedpath)