[pulseaudio-discuss] [PATCH v2 03/19] modules: Fix resource leak in device-restore
Peter Meerwald
pmeerw at pmeerw.net
Thu Dec 19 03:11:32 PST 2013
From: Peter Meerwald <p.meerwald at bct-electronic.com>
https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8724&defectInstanceId=3728&mergedDefectId=591265
Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
src/modules/module-device-restore.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/modules/module-device-restore.c b/src/modules/module-device-restore.c
index 780b3e1..0490677 100644
--- a/src/modules/module-device-restore.c
+++ b/src/modules/module-device-restore.c
@@ -1152,6 +1152,7 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
pa_format_info *f = pa_format_info_new();
if (pa_tagstruct_get_format_info(t, f) < 0) {
pa_format_info_free(f);
+ perportentry_free(e);
pa_xfree(name);
goto fail;
}
--
1.7.9.5
More information about the pulseaudio-discuss
mailing list