Commit 04761b55 authored by Xiangyu Bu's avatar Xiangyu Bu Committed by Richard Levitte
Browse files

Fix memory leak in GENERAL_NAME_set0_othername.

parent 590bbdfd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@ int GENERAL_NAME_set0_othername(GENERAL_NAME *gen,
    oth = OTHERNAME_new();
    if (oth == NULL)
        return 0;
    ASN1_TYPE_free(oth->value);
    oth->type_id = oid;
    oth->value = value;
    GENERAL_NAME_set0_value(gen, GEN_OTHERNAME, oth);