diff --git a/src/kem/bike/kem_bike.c b/src/kem/bike/kem_bike.c index def6358e3d..52c4f3d049 100644 --- a/src/kem/bike/kem_bike.c +++ b/src/kem/bike/kem_bike.c @@ -6,7 +6,7 @@ #ifdef OQS_ENABLE_KEM_bike_l1 OQS_KEM *OQS_KEM_bike_l1_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } @@ -31,7 +31,7 @@ OQS_KEM *OQS_KEM_bike_l1_new(void) { #ifdef OQS_ENABLE_KEM_bike_l3 OQS_KEM *OQS_KEM_bike_l3_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } @@ -56,7 +56,7 @@ OQS_KEM *OQS_KEM_bike_l3_new(void) { #ifdef OQS_ENABLE_KEM_bike_l5 OQS_KEM *OQS_KEM_bike_l5_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/frodokem/kem_frodokem1344aes.c b/src/kem/frodokem/kem_frodokem1344aes.c index 607061545b..199db1dace 100644 --- a/src/kem/frodokem/kem_frodokem1344aes.c +++ b/src/kem/frodokem/kem_frodokem1344aes.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_frodokem_1344_aes_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/frodokem/kem_frodokem1344shake.c b/src/kem/frodokem/kem_frodokem1344shake.c index c4a20c727d..9ab6d186b0 100644 --- a/src/kem/frodokem/kem_frodokem1344shake.c +++ b/src/kem/frodokem/kem_frodokem1344shake.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_frodokem_1344_shake_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/frodokem/kem_frodokem640aes.c b/src/kem/frodokem/kem_frodokem640aes.c index 2d9b38bf9c..c582013065 100644 --- a/src/kem/frodokem/kem_frodokem640aes.c +++ b/src/kem/frodokem/kem_frodokem640aes.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_frodokem_640_aes_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/frodokem/kem_frodokem640shake.c b/src/kem/frodokem/kem_frodokem640shake.c index 29db4de20f..1ff37c30a3 100644 --- a/src/kem/frodokem/kem_frodokem640shake.c +++ b/src/kem/frodokem/kem_frodokem640shake.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_frodokem_640_shake_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/frodokem/kem_frodokem976aes.c b/src/kem/frodokem/kem_frodokem976aes.c index 3d6b07a07c..fadf28373d 100644 --- a/src/kem/frodokem/kem_frodokem976aes.c +++ b/src/kem/frodokem/kem_frodokem976aes.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_frodokem_976_aes_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/frodokem/kem_frodokem976shake.c b/src/kem/frodokem/kem_frodokem976shake.c index 6cda90384f..cdc4d2964f 100644 --- a/src/kem/frodokem/kem_frodokem976shake.c +++ b/src/kem/frodokem/kem_frodokem976shake.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_frodokem_976_shake_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; } diff --git a/src/kem/ntruprime/kem_ntruprime_sntrup761.c b/src/kem/ntruprime/kem_ntruprime_sntrup761.c index bc69b36209..f8c4567641 100644 --- a/src/kem/ntruprime/kem_ntruprime_sntrup761.c +++ b/src/kem/ntruprime/kem_ntruprime_sntrup761.c @@ -8,7 +8,7 @@ OQS_KEM *OQS_KEM_ntruprime_sntrup761_new(void) { - OQS_KEM *kem = malloc(sizeof(OQS_KEM)); + OQS_KEM *kem = OQS_MEM_malloc(sizeof(OQS_KEM)); if (kem == NULL) { return NULL; }