Clean up this weird safe_emalloc() call