mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Catching out-of-memory in patricia tree code.
Based on patch by Bill Parker.
This commit is contained in:
parent
63d43e6545
commit
05e6289719
5 changed files with 83 additions and 58 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue