[pulseaudio-discuss] [PATCH] device-manager: Fix a memory leak.

Tanu Kaskinen tanu.kaskinen at digia.com
Fri Mar 23 02:36:39 PDT 2012


---
 src/modules/module-device-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/modules/module-device-manager.c b/src/modules/module-device-manager.c
index d7f30c6..2ce4c78 100644
--- a/src/modules/module-device-manager.c
+++ b/src/modules/module-device-manager.c
@@ -1443,6 +1443,8 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
             pa_xfree(devices[i]);
         }
 
+        pa_xfree(devices);
+
         if (!first) {
             trigger_save(u);
 
-- 
1.7.8



More information about the pulseaudio-discuss mailing list