diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-06-22 23:10:27 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-06-22 23:10:27 -0700 |
commit | e1d177b8429e4eb59f5a6e853009dbf97ab95068 (patch) | |
tree | 4733ff57c8a2fbac7470ca64d89852ae01908686 /png.c | |
parent | e9dcae6c35185d58f41d49b8952f9d55984532fd (diff) |
Fix some memory errors (mostly leaks) identified by valgrind
Diffstat (limited to 'png.c')
-rw-r--r-- | png.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |