commit d374e71cc2617393e7c01cc05bd15e8646df9347 parent 18f511184363c92af53295d52f66d79b6c8a016d Author: zerous Naveen Narayanan <zerous@nocebo.space> Date: Wed, 30 Oct 2019 19:16:00 +0100 Close file descriptor Thanks Evil_Bob Diffstat:
M | slb.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/slb.c b/slb.c @@ -25,6 +25,8 @@ pwread(const char *bat) } buf[t]=0; + + close(fd); return atoi(buf); }