diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-07 15:05:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-07 15:05:37 +0100 |
commit | 0d1ce8321cb7a56fb9b9d84154c2efac76282080 (patch) | |
tree | 32a6ebf14af0eb7f17c754ef8abdf73cae76223d /src/scrotty.c | |
parent | move dist files (diff) | |
download | scrotty-0d1ce8321cb7a56fb9b9d84154c2efac76282080.tar.gz scrotty-0d1ce8321cb7a56fb9b9d84154c2efac76282080.tar.bz2 scrotty-0d1ce8321cb7a56fb9b9d84154c2efac76282080.tar.xz |
Close the file when not using convert
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/scrotty.c | 1 |
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; } |