diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 22:44:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-16 22:44:15 +0200 |
commit | 9078b40d354b1e3e8995ca781d4ccfda0044a8f4 (patch) | |
tree | fe133d189c1eff5a4e376fc18246e0229b8e7946 /libswresample/resample.c | |
parent | c051d668b5dbf040f92551f78b1b13635b8fcfb8 (diff) | |
download | ffmpeg-9078b40d354b1e3e8995ca781d4ccfda0044a8f4.tar.gz |
swresample: replace 2 av_free() by av_freep()
avoids leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample.c')
-rw-r--r-- | libswresample/resample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c index fb9da7c354..8b1b6ca9af 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -256,7 +256,7 @@ static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_r return c; error: - av_free(c->filter_bank); + av_freep(&c->filter_bank); av_free(c); return NULL; } |