mutex is always allocated, cid#142
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24106 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -449,10 +449,10 @@ krb5_free_context(krb5_context context)
|
||||
krb5_set_extra_addresses(context, NULL);
|
||||
krb5_set_ignore_addresses(context, NULL);
|
||||
krb5_set_send_to_kdc_func(context, NULL, NULL);
|
||||
if (context->mutex != NULL) {
|
||||
HEIMDAL_MUTEX_destroy(context->mutex);
|
||||
free(context->mutex);
|
||||
}
|
||||
|
||||
HEIMDAL_MUTEX_destroy(context->mutex);
|
||||
free(context->mutex);
|
||||
|
||||
memset(context, 0, sizeof(*context));
|
||||
free(context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user