diff options
author | Bill Nottingham <notting@redhat.com> | 2004-05-04 16:27:20 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-05-04 16:27:20 +0000 |
commit | 8bc12cb8bd7088e5f067fb15687204a1837abdc1 (patch) | |
tree | c8bd7a3596fafaef754e01a70e79cf480585d31d /src/minilogd.c | |
parent | 5e212fb145ee5483f7b3134217b9527b18cbd33e (diff) | |
download | initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar.gz initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar.bz2 initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.tar.xz initscripts-8bc12cb8bd7088e5f067fb15687204a1837abdc1.zip |
cleanup fd leaks, mem leaks, other bogosities (#119987, <linux_4ever@yahoo.com>)
Diffstat (limited to 'src/minilogd.c')
-rw-r--r-- | src/minilogd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/minilogd.c b/src/minilogd.c index b33b102a..b7cbc8c0 100644 --- a/src/minilogd.c +++ b/src/minilogd.c @@ -155,6 +155,7 @@ int main(int argc, char **argv) { dup2(sock,0); dup2(sock,1); dup2(sock,2); + close(sock); bzero(&addr, sizeof(addr)); addr.sun_family = AF_LOCAL; |