summaryrefslogtreecommitdiffstats
path: root/cqrlogo.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-12 15:36:06 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-12 15:36:06 +0200
commit57478e2125b92050a2106136e3d54fc029675efc (patch)
tree436415e2b97a6184cc4c6754d3f5e6314e9d8367 /cqrlogo.c
parenta2a0cd196e4ef317bd3f536a644b13eaafb51881 (diff)
downloadcqrlogo-57478e2125b92050a2106136e3d54fc029675efc.tar.gz
cqrlogo-57478e2125b92050a2106136e3d54fc029675efc.tar.zst
free same as allocated
Diffstat (limited to 'cqrlogo.c')
-rw-r--r--cqrlogo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cqrlogo.c b/cqrlogo.c
index 255d948..14f01a6 100644
--- a/cqrlogo.c
+++ b/cqrlogo.c
@@ -92,9 +92,8 @@ int generate_png (struct bitmap_t *bitmap, const char *uri) {
png_set_rows (png_ptr, info_ptr, row_pointers);
png_write_png (png_ptr, info_ptr, PNG_TRANSFORM_IDENTITY, NULL);
- for (y = 0; y < bitmap->height; y++) {
+ for (y = 0; y < bitmap->height; ++y)
png_free (png_ptr, row_pointers[y]);
- }
png_free (png_ptr, row_pointers);
return 0;