Introduce av_realloc_f.
authorNicolas George <nicolas.george@normalesup.org>
Sun, 20 Mar 2011 18:39:20 +0000 (19:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 1 Oct 2011 18:48:59 +0000 (20:48 +0200)
commita75b5a89d11b80e89bb2ff723cfcc270480dc06d
tree47b66e29c2cb60c83e32f5bcb0c1f37c7e972fe6
parent651e21f584d92709d58242dcad49b238e54dfdd5
Introduce av_realloc_f.

av_realloc_f helps avoiding memory-leaks in typical uses of realloc.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 5cd754bca290775ec2dbbf88597ab58e0482efca)
libavutil/mem.c
libavutil/mem.h