summaryrefslogtreecommitdiff
path: root/jdatadst.c
diff options
context:
space:
mode:
Diffstat (limited to 'jdatadst.c')
-rw-r--r--jdatadst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/jdatadst.c b/jdatadst.c
index 3168b96..246fffb 100644
--- a/jdatadst.c
+++ b/jdatadst.c
@@ -143,8 +143,7 @@ empty_mem_output_buffer(j_compress_ptr cinfo)
MEMCOPY(nextbuffer, dest->buffer, dest->bufsize);
- if (dest->newbuffer != NULL)
- free(dest->newbuffer);
+ free(dest->newbuffer);
dest->newbuffer = nextbuffer;