diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-10-20 00:48:40 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-10-20 00:48:40 +0000 |
commit | 290fb494cb050e1b7100d5abcd80aabc1430950f (patch) | |
tree | 2dfc495c91c1ff7c918a4999a7ef68085a9558f1 | |
parent | 82121748683e080b2937e05618fd26a6dafbfbc0 (diff) | |
download | krb5-290fb494cb050e1b7100d5abcd80aabc1430950f.zip krb5-290fb494cb050e1b7100d5abcd80aabc1430950f.tar.gz krb5-290fb494cb050e1b7100d5abcd80aabc1430950f.tar.bz2 |
Don't leak fd on fork error
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20136 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/util/ss/help.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/ss/help.c b/src/util/ss/help.c index 0199397..b144e28 100644 --- a/src/util/ss/help.c +++ b/src/util/ss/help.c @@ -73,6 +73,7 @@ got_it: switch (child = fork()) { case -1: ss_perror(sci_idx, errno, "Can't fork for pager"); + close(fd); return; case 0: (void) dup2(fd, 0); /* put file on stdin */ |