summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/nsdispatch.c
diff options
context:
space:
mode:
authorjon <jon@FreeBSD.org>2007-05-17 03:33:23 +0000
committerjon <jon@FreeBSD.org>2007-05-17 03:33:23 +0000
commit3127d2bb31e30b1d390602807027788a016c08bb (patch)
treeb0c4fb0726002bf66b08be9c762953bfb83a5e2f /lib/libc/net/nsdispatch.c
parentfe7fa59a06ef70816d352f48c70269dca62f96e2 (diff)
downloadFreeBSD-src-3127d2bb31e30b1d390602807027788a016c08bb.zip
FreeBSD-src-3127d2bb31e30b1d390602807027788a016c08bb.tar.gz
fix memory leak from reading nsswitch.conf
MFC after: 1 week
Diffstat (limited to 'lib/libc/net/nsdispatch.c')
-rw-r--r--lib/libc/net/nsdispatch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c
index 0e3c419..ad3f208 100644
--- a/lib/libc/net/nsdispatch.c
+++ b/lib/libc/net/nsdispatch.c
@@ -412,6 +412,8 @@ static void
ns_dbt_free(ns_dbt *dbt)
{
ns_src_free(&dbt->srclist, dbt->srclistsize);
+ if (dbt->name)
+ free((void *)dbt->name);
}
OpenPOWER on IntegriCloud