---
 src/output/ao_plugin.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/output/ao_plugin.c b/src/output/ao_plugin.c
index 71e06ba..33366d3 100644
--- a/src/output/ao_plugin.c
+++ b/src/output/ao_plugin.c
@@ -106,12 +106,14 @@ ao_output_init(G_GNUC_UNUSED const struct audio_format 
*audio_format,
                g_set_error(error, ao_output_quark(), 0,
                            "\"%s\" is not a valid ao driver",
                            value);
+               g_free(ad);
                return NULL;
        }
 
        if ((ai = ao_driver_info(ad->driver)) == NULL) {
                g_set_error(error, ao_output_quark(), 0,
                            "problems getting driver info");
+               g_free(ad);
                return NULL;
        }
 
@@ -129,6 +131,7 @@ ao_output_init(G_GNUC_UNUSED const struct audio_format 
*audio_format,
                                g_set_error(error, ao_output_quark(), 0,
                                            "problems parsing options \"%s\"",
                                            options[i]);
+                               g_free(ad);
                                return NULL;
                        }
 
-- 
1.7.5.4


------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to