sk_pop_free(gens, GENERAL_NAME_free);
sk_GENERAL_NAME_pop_free(gens, GENERAL_NAME_free);
static STACK *v2i_subject_alt(X509V3_EXT_METHOD *method, X509V3_CTX *ctx,	     STACK *nval){	STACK *gens = NULL;	CONF_VALUE *cnf;	int i;	if(!(gens = sk_new(NULL))) {		X509V3err(X509V3_F_V2I_GENERAL_NAMES,ERR_R_MALLOC_FAILURE);		return NULL;	}	for(i = 0; i < sk_num(nval); i++) {		cnf = (CONF_VALUE *)sk_value(nval, i);		if(!name_cmp(cnf->name, "email") && cnf->value &&						!strcmp(cnf->value, "copy")) {			if(!copy_email(ctx, gens)) goto err;		} else {			GENERAL_NAME *gen;			if(!(gen = v2i_GENERAL_NAME(method, ctx, cnf)))								 goto err; 			sk_push(gens, (char *)gen);		}	}	return gens;	err:	sk_pop_free(gens, GENERAL_NAME_free);	return NULL;}