From 290fb494cb050e1b7100d5abcd80aabc1430950f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 20 Oct 2007 00:48:40 +0000 Subject: [PATCH] Don't leak fd on fork error git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20136 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/ss/help.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/ss/help.c b/src/util/ss/help.c index 019939795..b144e282e 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 */ -- 2.26.2