} else { nssList_Clear(list, NULL); } if (lock) { PZ_DestroyLock(lock);
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;}