diff options
author | Michael Santos <[email protected]> | 2016-01-28 11:11:45 -0500 |
---|---|---|
committer | Michael Santos <[email protected]> | 2016-01-28 11:11:45 -0500 |
commit | 9194e3beb7170c7a3db7391f005e6ab0aabd180d (patch) | |
tree | eda8de104e0e2f1a1e21555f8525600fcf8d57b5 /erts/etc/common/inet_gethost.c | |
parent | ff58636f3261150aec21c2209492c0a7feb75bd6 (diff) | |
download | otp-9194e3beb7170c7a3db7391f005e6ab0aabd180d.tar.gz otp-9194e3beb7170c7a3db7391f005e6ab0aabd180d.tar.bz2 otp-9194e3beb7170c7a3db7391f005e6ab0aabd180d.zip |
erts/common: check for OOM on Windows
Fix the command line tools to abort on allocation failures when run
on Windows. Modify the malloc() wrapper to consistently return void*
across all the tools.
Diffstat (limited to 'erts/etc/common/inet_gethost.c')
-rw-r--r-- | erts/etc/common/inet_gethost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/inet_gethost.c b/erts/etc/common/inet_gethost.c index e298c5e7f7..b27c3da9ac 100644 --- a/erts/etc/common/inet_gethost.c +++ b/erts/etc/common/inet_gethost.c @@ -2646,7 +2646,7 @@ static void *my_realloc(void *old, size_t size) BOOL create_mesq(MesQ **q) { - MesQ *tmp = malloc(sizeof(MesQ)); + MesQ *tmp = ALLOC(sizeof(MesQ)); tmp->data_present = CreateEvent(NULL, TRUE, FALSE,NULL); if (tmp->data_present == NULL) { free(tmp); |