summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/modules/module-ladspa-sink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
index bcf62290..b31037b6 100644
--- a/src/modules/module-ladspa-sink.c
+++ b/src/modules/module-ladspa-sink.c
@@ -472,6 +472,8 @@ int pa__init(pa_module*m) {
if (p > n_control || k) {
pa_log("Too many control values passed, %lu expected.", n_control);
+ if (k)
+ pa_xfree(k);
goto fail;
}