diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-05 02:59:00 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-05 02:59:00 +0000 |
commit | 78e55a1f29558e8be54566ead1e7be8ab9d45273 (patch) | |
tree | 65fd45fa55d0cd3888b40a4f41dd3383616dfd74 /lib/libc/net/ether_addr.c | |
parent | 885f2f31b4599f4bc7468278c783c1c30f1f86ed (diff) |
Notes
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); |