PZLock *lock = list->lock; if (list->arena) {
if (!list->i_alloced_arena) { nssList_Clear(list, NULL); } if (list->lock) { (void)PZ_DestroyLock(list->lock); } if (list->i_alloced_arena) {
nssList_Destroy(nssList *list){    PZLock *lock = list->lock;    if (list->arena) {	NSSArena_Destroy(list->arena);	list = NULL;    } else {	nssList_Clear(list, NULL);    }    if (lock) {	PZ_DestroyLock(lock);    }    nss_ZFreeIf(list);    return PR_SUCCESS;}