list->name = (CERTGeneralName *) PORT_ArenaZAlloc(arena, sizeof(CERTGeneralName));
list->name = PORT_ArenaZNew(arena, CERTGeneralName);
CERT_CreateGeneralNameList(CERTGeneralName *name) {    PRArenaPool *arena;    CERTGeneralNameList *list = NULL;    arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);    if (arena == NULL) {	goto done;    }    list = (CERTGeneralNameList *)	PORT_ArenaZAlloc(arena, sizeof(CERTGeneralNameList));    if (!list)    	goto loser;    if (name != NULL) {	list->name = (CERTGeneralName *)	    PORT_ArenaZAlloc(arena, sizeof(CERTGeneralName));	if (!list->name)	    goto loser;	list->name->l.next = list->name->l.prev = &list->name->l;	CERT_CopyGeneralName(arena, list->name, name);    }    list->lock = PZ_NewLock(nssILockList);    if (!list->lock)    	goto loser;    list->arena = arena;    list->refCount = 1;done:    return list;loser:    PORT_FreeArena(arena, PR_FALSE);    return NULL;}