[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Wed Sep 21 09:26:23 UTC 2016


 src/modules/module-zeroconf-discover.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 768e57c8a07c6fc44e2dcbafd063439ebccd0cf7
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date:   Tue Sep 20 10:26:00 2016 -0700

    zeroconf-discover: fix a memory leak
    
    Coverity CID: #1358700
    
    https://bugs.freedesktop.org/show_bug.cgi?id=97876

diff --git a/src/modules/module-zeroconf-discover.c b/src/modules/module-zeroconf-discover.c
index bd7e6ab..96476b7 100644
--- a/src/modules/module-zeroconf-discover.c
+++ b/src/modules/module-zeroconf-discover.c
@@ -173,9 +173,10 @@ static void resolver_cb(
                 ss.channels = (uint8_t) atoi(value);
             else if (pa_streq(key, "format"))
                 ss.format = pa_parse_sample_format(value);
-            else if (pa_streq(key, "icon-name"))
+            else if (pa_streq(key, "icon-name")) {
+                pa_xfree(properties);
                 properties = pa_sprintf_malloc("device.icon_name=%s", value);
-            else if (pa_streq(key, "channel_map")) {
+            } else if (pa_streq(key, "channel_map")) {
                 pa_channel_map_parse(&cm, value);
                 channel_map_set = true;
             }



More information about the pulseaudio-commits mailing list