summaryrefslogtreecommitdiff
path: root/png.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2018-06-22 23:10:27 -0700
committerMichael Pavone <pavone@retrodev.com>2018-06-22 23:10:27 -0700
commite1d177b8429e4eb59f5a6e853009dbf97ab95068 (patch)
tree4733ff57c8a2fbac7470ca64d89852ae01908686 /png.c
parente9dcae6c35185d58f41d49b8952f9d55984532fd (diff)
Fix some memory errors (mostly leaks) identified by valgrind
Diffstat (limited to 'png.c')
-rw-r--r--png.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/png.c b/png.c
index c1efca7..188bbfe 100644
--- a/png.c
+++ b/png.c
@@ -430,6 +430,7 @@ uint32_t *load_png(uint8_t *buffer, uint32_t buf_size, uint32_t *width, uint32_t
}
last_line = line_start;
}
+ free(decomp_buffer);
} else {
//skip uncrecognized chunks
cur += 4 + chunk_size;