hx509: hx509_context_free do not leak configuration files
hx509_context_free() must call heim_config_file_free() on the hx509_context.cf section binding. Otherwise the memory is leaked. Change-Id: Ib3350a5be67203904fc1aee727c342c3ed552978
This commit is contained in:

committed by
Jeffrey Altman

parent
bbe5bf669b
commit
226a3ba7d7
@@ -262,6 +262,7 @@ hx509_context_free(hx509_context *context)
|
||||
free_error_table ((*context)->et_list);
|
||||
if ((*context)->querystat)
|
||||
free((*context)->querystat);
|
||||
heim_config_file_free((*context)->hcontext, (*context)->cf);
|
||||
heim_context_free(&(*context)->hcontext);
|
||||
memset(*context, 0, sizeof(**context));
|
||||
free(*context);
|
||||
|
Reference in New Issue
Block a user