changeset 538:45c46bfa03bd

Free the correct buffer pointer in error situations in the encoder function.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 22 Nov 2012 22:17:47 +0200
parents fbfdc9e4fe2b
children 8d7b6fecbb24
files lib64gfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib64gfx.c	Thu Nov 22 21:09:15 2012 +0200
+++ b/lib64gfx.c	Thu Nov 22 22:17:47 2012 +0200
@@ -671,7 +671,7 @@
     return DMERR_OK;
 
 error:
-    dmFree(*pbuf);
+    dmFree(buf);
     *pbuf = NULL;
     *plen = 0;
     return res;