free ypbuf only when yp_match() succeed.
This commit is contained in:
parent
9ccf2f38c1
commit
f8997ca2f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146190
@ -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