avutil/tree: fix memleaks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
161054f37b
commit
b326438139
@ -245,8 +245,10 @@ int main(int argc, char **argv)
|
|||||||
k = av_tree_find(root, (void *)(j + 1), cmp, NULL);
|
k = av_tree_find(root, (void *)(j + 1), cmp, NULL);
|
||||||
if (k)
|
if (k)
|
||||||
av_log(NULL, AV_LOG_ERROR, "removal failure %d\n", i);
|
av_log(NULL, AV_LOG_ERROR, "removal failure %d\n", i);
|
||||||
|
av_free(node2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
av_free(node);
|
||||||
|
|
||||||
av_tree_destroy(root);
|
av_tree_destroy(root);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user