release cred too
This commit is contained in:
@@ -428,6 +428,8 @@ kcm_release_ccache(krb5_context context, kcm_ccache c)
|
|||||||
|
|
||||||
HEIMDAL_MUTEX_lock(&c->mutex);
|
HEIMDAL_MUTEX_lock(&c->mutex);
|
||||||
if (c->refcnt == 1) {
|
if (c->refcnt == 1) {
|
||||||
|
kcm_free_ccache_data_internal(context, c);
|
||||||
|
free(c);
|
||||||
} else {
|
} else {
|
||||||
c->refcnt--;
|
c->refcnt--;
|
||||||
HEIMDAL_MUTEX_unlock(&c->mutex);
|
HEIMDAL_MUTEX_unlock(&c->mutex);
|
||||||
|
Reference in New Issue
Block a user