void *malloc_or_die( size_t size ) {
void *p = malloc( size );
if ( !p ) exit( 1 );
return p;
}