Catching out-of-memory in patricia tree code.

Based on patch by Bill Parker.
This commit is contained in:
Robin Sommer 2012-12-03 14:50:33 -08:00
parent 63d43e6545
commit 05e6289719
5 changed files with 83 additions and 58 deletions

View file

@ -1416,7 +1416,7 @@ void safe_close(int fd)
}
}
void out_of_memory(const char* where)
extern "C" void out_of_memory(const char* where)
{
fprintf(stderr, "out of memory in %s.\n", where);