mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
resampler: Fix leaking lfe filter on init failure
Fix memory leak in pa_resampler_new() in resampler.c, Deallocating memory of r->lfe_filter in case of fail. Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
This commit is contained in:
parent
adbaae77d6
commit
1d5dfccbb2
1 changed files with 2 additions and 0 deletions
|
|
@ -431,6 +431,8 @@ pa_resampler* pa_resampler_new(
|
|||
return r;
|
||||
|
||||
fail:
|
||||
if (r->lfe_filter)
|
||||
pa_lfe_filter_free(r->lfe_filter);
|
||||
pa_xfree(r);
|
||||
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue