free ypbuf only when yp_match() succeed.

This commit is contained in:
Hajimu UMEMOTO 2005-05-13 17:30:03 +00:00
parent 9ccf2f38c1
commit f8997ca2f4

View File

@ -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 */