[pulseaudio-commits] src/pulsecore
Arun Raghavan
arun at kemper.freedesktop.org
Fri May 27 04:09:27 UTC 2016
src/pulsecore/resampler.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 1d5dfccbb2b72abca6989a1c85b92e3e6e23bded
Author: Barun Kumar Singh <barun.singh at samsung.com>
Date: Fri May 13 16:14:31 2016 +0530
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 at arunraghavan.net>
diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
index b683b05..ea22cd2 100644
--- a/src/pulsecore/resampler.c
+++ b/src/pulsecore/resampler.c
@@ -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;
More information about the pulseaudio-commits
mailing list