From e1d177b8429e4eb59f5a6e853009dbf97ab95068 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Fri, 22 Jun 2018 23:10:27 -0700 Subject: Fix some memory errors (mostly leaks) identified by valgrind --- png.c | 1 + 1 file changed, 1 insertion(+) (limited to 'png.c') 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; -- cgit v1.2.3