abort() on OOM

This commit is contained in:
Markus Teich 2016-11-22 03:11:24 +01:00
parent e9d1c7ba00
commit a74e150375

View File

@ -467,7 +467,7 @@ smc_init2 (uint16_t size1, uint16_t size2)
weprintf ("could not init point in 2 dimensional array. " weprintf ("could not init point in 2 dimensional array. "
"out of memory?"); "out of memory?");
smc_free2 (ret, size1, size2); smc_free2 (ret, size1, size2);
return NULL; GNUNET_assert (0);
} }
} }
} }
@ -530,7 +530,7 @@ smc_init3 (uint16_t size1, uint16_t size2, uint16_t size3)
weprintf ("could not init point in 2 dimensional array. " weprintf ("could not init point in 2 dimensional array. "
"out of memory?"); "out of memory?");
smc_free3 (ret, size1, size2, size3); smc_free3 (ret, size1, size2, size3);
return NULL; GNUNET_assert (0);
} }
} }
} }