Do not free endomorphism constants when disabled

This commit is contained in:
Pieter Wuille
2014-06-15 23:31:17 +02:00
parent ebfa43b20a
commit 4d79bebdff
2 changed files with 4 additions and 0 deletions

View File

@@ -29,9 +29,11 @@ typedef struct {
secp256k1_num_t half_order; // half the order of the curve (= order of its generator)
secp256k1_ge_t g; // the generator point
#ifdef USE_ENDOMORPHISM
// constants related to secp256k1's efficiently computable endomorphism
secp256k1_fe_t beta;
secp256k1_num_t lambda, a1b2, b1, a2;
#endif
} secp256k1_ge_consts_t;
static const secp256k1_ge_consts_t *secp256k1_ge_consts = NULL;