aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-01 11:23:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-01 11:29:12 +0200
commitb32643813961d7d76e9040c13d88c3a7cd6f923d (patch)
tree678aa3d33cec042f5aa3b27dc47ec5597aae365b /libavutil
parent161054f37b15893a5854874eed87bb4a4561d04a (diff)
downloadffmpeg-b32643813961d7d76e9040c13d88c3a7cd6f923d.tar.gz
avutil/tree: fix memleaks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/tree.c2
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);