aboutsummaryrefslogtreecommitdiffstats
path: root/src/vu-crop.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-12 00:17:20 +0100
committerMattias Andrée <maandree@kth.se>2017-01-12 00:17:20 +0100
commitec4ee45678679fd1a2b64bebe59b0612eaff2d6e (patch)
tree071bf3c714a1873f559793fa4d97fb688414ea3a /src/vu-crop.c
parentcleanup (diff)
downloadblind-ec4ee45678679fd1a2b64bebe59b0612eaff2d6e.tar.gz
blind-ec4ee45678679fd1a2b64bebe59b0612eaff2d6e.tar.bz2
blind-ec4ee45678679fd1a2b64bebe59b0612eaff2d6e.tar.xz
Free all allocations at end + use calloc instead of memset
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/vu-crop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vu-crop.c b/src/vu-crop.c
index 68b1724..bf5a930 100644
--- a/src/vu-crop.c
+++ b/src/vu-crop.c
@@ -80,5 +80,7 @@ main(int argc, char *argv[])
ewriteall(STDOUT_FILENO, image, m, "<stdout>");
}
+ free(buf);
+ free(image);
return 0;
}