Yusuke Endoh 92585898fb Prevent memory leak
```
for (int i = 0; i < arg->family_size; i++) {
    arg->getaddrinfo_entries[i] = allocate_fast_fallback_getaddrinfo_entry();
    if (!(arg->getaddrinfo_entries[i])) rb_syserr_fail(errno, "calloc(3)");
```

If the allocation fails in the second interation, the memory allocated
in the first iteration would be leaked.

This change prevents the memory leak by allocating the memory in
advance.
(The struct name `fast_fallback_getaddrinfo_shared` might no longer be
good.)
2024-11-25 20:18:48 +09:00
..
2024-04-27 21:55:28 +09:00
2024-11-25 20:18:48 +09:00
2024-03-03 00:55:45 +09:00
2024-11-25 20:18:48 +09:00
2024-11-25 20:18:48 +09:00