summaryrefslogtreecommitdiff
path: root/tests/gif
diff options
context:
space:
mode:
authortabe <none@none>2010-08-24 18:55:17 +0900
committertabe <none@none>2010-08-24 18:55:17 +0900
commitf15932dd57430caf64d8509788c7b81bb435648c (patch)
tree7e98fc83f63eb3a548c0e5195d5fb8aa3c9f4938 /tests/gif
parentdb10f301fff50d8f65ebbbedb57b79433c2dc8a3 (diff)
downloadlibgd-f15932dd57430caf64d8509788c7b81bb435648c.tar.gz
free memory
Diffstat (limited to 'tests/gif')
-rw-r--r--tests/gif/bug00227.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gif/bug00227.c b/tests/gif/bug00227.c
index 1c108aa..5507275 100644
--- a/tests/gif/bug00227.c
+++ b/tests/gif/bug00227.c
@@ -61,6 +61,7 @@ int main()
if (!buf) return 1;
if (PROBE_SIZE != fread(buf, 1, PROBE_SIZE, fp)) return 1;
if (buf[PROBE_SIZE-1] & 0x80) return 1;
+ free(buf);
fclose(fp);
return 0;
}