summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBarun Kumar Singh <barun.singh@samsung.com>2016-05-13 16:14:31 +0530
committerArun Raghavan <arun@arunraghavan.net>2016-05-27 09:37:37 +0530
commit1d5dfccbb2b72abca6989a1c85b92e3e6e23bded (patch)
treef6dbe1e82160837c9829782bf8d8a12b51fcfe4f /src
parentadbaae77d6a36725ba4235f6402e7d5bee59863f (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/resampler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
index b683b0571..ea22cd2ff 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;