summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@digia.com>2012-03-23 11:36:39 +0200
committerTanu Kaskinen <tanuk@iki.fi>2012-03-28 17:23:05 +0300
commit191d60688d18591acb3b0ddeafb870a2b1007429 (patch)
tree80a190775db8e73134e06b830d26e90b898be5e3
parent2f7a586a23a7e8c595c4a0a1d11b75669953d794 (diff)
downloadpulseaudio-panda-191d60688d18591acb3b0ddeafb870a2b1007429.tar.gz
pulseaudio-panda-191d60688d18591acb3b0ddeafb870a2b1007429.tar.bz2
pulseaudio-panda-191d60688d18591acb3b0ddeafb870a2b1007429.zip
device-manager: Fix a memory leak.
-rw-r--r--src/modules/module-device-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/module-device-manager.c b/src/modules/module-device-manager.c
index d7f30c6b..2ce4c789 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);