diff options
Diffstat (limited to 'lib/libc/net/ether_addr.c')
-rw-r--r-- | lib/libc/net/ether_addr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/ether_addr.c b/lib/libc/net/ether_addr.c index ded2ce349d14..b287f2e361e4 100644 --- a/lib/libc/net/ether_addr.c +++ b/lib/libc/net/ether_addr.c @@ -147,6 +147,7 @@ int ether_ntohost(hostname, e) ether_a = ether_ntoa(e); if (yp_match(yp_domain, "ethers.byaddr", ether_a, strlen(ether_a), &result, &resultlen)) { + free(result); continue; } strncpy((char *)&buf, result, resultlen); @@ -196,6 +197,7 @@ int ether_hostton(hostname, e) continue; if (yp_match(yp_domain, "ethers.byname", hostname, strlen(hostname), &result, &resultlen)) { + free(result); continue; } strncpy((char *)&buf, result, resultlen); |