diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-05-13 15:17:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-05-13 15:17:49 +0000 |
commit | 1c69b15c7c8e019b96bb640d33d6256069a3cfd4 (patch) | |
tree | ee7a555a624b2f3a3fa88df3955b381272b59d05 /lib | |
parent | 54cd2bee581ac5f544443d66c9951d1b88d7a583 (diff) |
return on memory alloc fail
Diffstat (limited to 'lib')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c index fe03a5dde..d2a3f9c24 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -120,6 +120,8 @@ CURLM *curl_multi_init(void) memset(multi, 0, sizeof(struct Curl_multi)); multi->type = CURL_MULTI_HANDLE; } + else + return NULL; multi->hostcache = Curl_mk_dnscache(); if(!multi->hostcache) { |