added parameter to dict_free_all