summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/decode_gif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/decode_gif.c b/test/decode_gif.c
index 0ce53c7..619be29 100644
--- a/test/decode_gif.c
+++ b/test/decode_gif.c
@@ -230,6 +230,8 @@ int main(int argc, char *argv[])
code = gif_initialise(&gif, size, data);
if (code != GIF_OK && code != GIF_WORKING) {
warning("gif_initialise", code);
+ gif_finalise(&gif);
+ free(data);
return 1;
}
} while (code != GIF_OK);