in src/umocktypes.c [84:104]
void umocktypes_deinit(void)
{
/* Codes_SRS_UMOCKTYPES_01_006: [ If the module was not initialized, umocktypes_deinit shall do nothing. ]*/
if (umocktypes_state == UMOCKTYPES_STATE_INITIALIZED)
{
size_t i;
/* Codes_SRS_UMOCKTYPES_01_005: [ umocktypes_deinit shall free all resources associated with the registered types and shall leave the module in a state where another init is possible. ]*/
for (i = 0; i < type_handler_count; i++)
{
umockalloc_free(type_handlers[i].type);
}
umockalloc_free(type_handlers);
type_handlers = NULL;
type_handler_count = 0;
/* Codes_SRS_UMOCKTYPES_01_040: [ An umocktypes_init call after deinit shall succeed provided all underlying calls succeed. ]*/
umocktypes_state = UMOCKTYPES_STATE_NOT_INITIALIZED;
}
}