i2d_ASN1_OBJECT(): allocate memory if the user didn't provide a buffer