Fix dangling else
This commit is contained in:
parent
fba8aff7af
commit
d8c6e91748
@ -277,8 +277,9 @@ numeric_getaddrinfo(const char *node, const char *service,
|
|||||||
void
|
void
|
||||||
rb_freeaddrinfo(struct rb_addrinfo *ai)
|
rb_freeaddrinfo(struct rb_addrinfo *ai)
|
||||||
{
|
{
|
||||||
if (!ai->allocated_by_malloc)
|
if (!ai->allocated_by_malloc) {
|
||||||
if (ai->ai) freeaddrinfo(ai->ai);
|
if (ai->ai) freeaddrinfo(ai->ai);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
struct addrinfo *ai1, *ai2;
|
struct addrinfo *ai1, *ai2;
|
||||||
ai1 = ai->ai;
|
ai1 = ai->ai;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user