diff options
author | brian <brian@FreeBSD.org> | 1997-08-11 22:05:10 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-08-11 22:05:10 +0000 |
commit | ab1e7a59961256f679b5cfba97b4cbf54aca7d47 (patch) | |
tree | 38dcb144aa54f36e7b5c9c5b1bc52fbe441308b0 /lib/libalias/alias_db.c | |
parent | d18cfb8af28db1574d9f392786def6fafd920c6a (diff) | |
download | FreeBSD-src-ab1e7a59961256f679b5cfba97b4cbf54aca7d47.zip FreeBSD-src-ab1e7a59961256f679b5cfba97b4cbf54aca7d47.tar.gz |
Fix file descriptor leak.
Submitted by: Charles Mott <cmott@srv.net>
Identified by: Gordon Burditt
Diffstat (limited to 'lib/libalias/alias_db.c')
-rw-r--r-- | lib/libalias/alias_db.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c index fa2befc..3579dca 100644 --- a/lib/libalias/alias_db.c +++ b/lib/libalias/alias_db.c @@ -616,6 +616,7 @@ GetSocket(u_short port_net, int *sockfd, int link_type) } else { + close(sock); return(0); } } |