modules: Fix resource leak in device-restore

https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8724&defectInstanceId=3728&mergedDefectId=591265

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
Peter Meerwald 2013-12-16 16:15:09 +01:00
parent cfce437e47
commit a4b8a9d5a2

View file

@ -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(); pa_format_info *f = pa_format_info_new();
if (pa_tagstruct_get_format_info(t, f) < 0) { if (pa_tagstruct_get_format_info(t, f) < 0) {
pa_format_info_free(f); pa_format_info_free(f);
perportentry_free(e);
pa_xfree(name); pa_xfree(name);
goto fail; goto fail;
} }