From 604ae49f09b994b60147cdc1a379c5cc74583293 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 23 Jan 2009 11:40:06 -0800 Subject: [PATCH] fixed a mem leak --- lib/modules/swftools.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/modules/swftools.c b/lib/modules/swftools.c index cd57d6f..ddc8694 100644 --- a/lib/modules/swftools.c +++ b/lib/modules/swftools.c @@ -1025,6 +1025,7 @@ char swf_Relocate (SWF*swf, char*bitmap) PUT16(&tag->data[ptr[t]], id); } } + free(ptr); } tag=tag->next; } @@ -1057,6 +1058,7 @@ void swf_Relocate2(SWF*swf, int*id2id) PUT16(&tag->data[ptr[t]], id); } } + free(ptr); } } } -- 1.7.10.4