[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Sat Jan 26 18:52:17 PST 2013


 src/modules/module-ladspa-sink.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 32b6b4df644f1ab200ff5e4c6b43e76622f689ca
Author: Tanu Kaskinen <tanuk at iki.fi>
Date:   Sun Jan 27 04:51:55 2013 +0200

    ladspa: Fix a couple of minor memory leaks.

diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
index 05fb215..e18e674 100644
--- a/src/modules/module-ladspa-sink.c
+++ b/src/modules/module-ladspa-sink.c
@@ -1132,10 +1132,10 @@ int pa__init(pa_module*m) {
         while ((pname = pa_split(input_ladspaport_map, ",", &state))) {
             if (c == u->input_count) {
                 pa_log("Too many ports in input ladspa port map");
+                pa_xfree(pname);
                 goto fail;
             }
 
-
             for (p = 0; p < d->PortCount; p++) {
                 if (pa_streq(d->PortNames[p], pname)) {
                     if (LADSPA_IS_PORT_AUDIO(d->PortDescriptors[p]) && LADSPA_IS_PORT_INPUT(d->PortDescriptors[p])) {
@@ -1160,6 +1160,7 @@ int pa__init(pa_module*m) {
         while ((pname = pa_split(output_ladspaport_map, ",", &state))) {
             if (c == u->output_count) {
                 pa_log("Too many ports in output ladspa port map");
+                pa_xfree(pname);
                 goto fail;
             }
             for (p = 0; p < d->PortCount; p++) {



More information about the pulseaudio-commits mailing list