diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-01 13:23:45 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-01 13:29:12 +0400 |
commit | b32643813961d7d76e9040c13d88c3a7cd6f923d (patch) | |
tree | 678aa3d33cec042f5aa3b27dc47ec5597aae365b | |
parent | 161054f37b15893a5854874eed87bb4a4561d04a (diff) |
avutil/tree: fix memleaks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/tree.c b/libavutil/tree.c index 643d0a9a7d..e1b31975c3 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); |