free ypbuf only when yp_match() succeed.
This commit is contained in:
parent
9ccf2f38c1
commit
f8997ca2f4
@ -2246,8 +2246,8 @@ _yp_getaddrinfo(rv, cb_data, ap)
|
||||
while (cur && cur->ai_next)
|
||||
cur = cur->ai_next;
|
||||
}
|
||||
free(ypbuf);
|
||||
}
|
||||
free(ypbuf);
|
||||
}
|
||||
|
||||
/* ipnodes.byname can hold both IPv4/v6 */
|
||||
|
Loading…
Reference in New Issue
Block a user