[FFmpeg-cvslog] avutil/tree: fix memleaks

Michael Niedermayer git at videolan.org
Thu Aug 1 11:29:45 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug  1 11:23:45 2013 +0200| [b32643813961d7d76e9040c13d88c3a7cd6f923d] | committer: Michael Niedermayer

avutil/tree: fix memleaks

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b32643813961d7d76e9040c13d88c3a7cd6f923d
---

 libavutil/tree.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/tree.c b/libavutil/tree.c
index 643d0a9..e1b3197 100644
--- a/libavutil/tree.c
+++ b/libavutil/tree.c
@@ -245,8 +245,10 @@ int main(int argc, char **argv)
             k = av_tree_find(root, (void *)(j + 1), cmp, NULL);
             if (k)
                 av_log(NULL, AV_LOG_ERROR, "removal failure %d\n", i);
+            av_free(node2);
         }
     }
+    av_free(node);
 
     av_tree_destroy(root);
 



More information about the ffmpeg-cvslog mailing list