Hacker News new | ask | show | jobs
by JackSlateur 171 days ago
An oom is when malloc failed

So you have to ensure that in such situation, you can execute code that does not require more memory: ensure that the rest only free stuff, or preallocate structures for that purpose