aboutsummaryrefslogtreecommitdiff
path: root/libXaw/src/AsciiSrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXaw/src/AsciiSrc.c')
-rw-r--r--libXaw/src/AsciiSrc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libXaw/src/AsciiSrc.c b/libXaw/src/AsciiSrc.c
index b28b2c4f3..a37b6a1ff 100644
--- a/libXaw/src/AsciiSrc.c
+++ b/libXaw/src/AsciiSrc.c
@@ -1491,6 +1491,8 @@ InitStringOrFile(AsciiSrcObject src, Bool newString)
src->ascii_src.length = (XawTextPosition)ftell(file);
return (file);
}
+ else
+ close(fd);
}
{
String params[2];