aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scrotty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scrotty.c b/src/scrotty.c
index 591db78..7a0e31b 100644
--- a/src/scrotty.c
+++ b/src/scrotty.c
@@ -237,6 +237,7 @@ static int save(const char* fbpath, const char* imgpath, long width, long height
if (save_pnm(fbpath, width, height, fd) < 0)
return saved_errno = errno, close(fd), errno = saved_errno, -1;
+ close(fd);
return 0;
}