mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
modules: Fix resource leak in oss
https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8824&defectInstanceId=3731&mergedDefectId=591267 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
9a341c6b36
commit
c2e9f1fdec
1 changed files with 2 additions and 0 deletions
|
|
@ -1329,6 +1329,7 @@ int pa__init(pa_module*m) {
|
|||
if (pa_modargs_get_proplist(ma, "source_properties", source_new_data.proplist, PA_UPDATE_REPLACE) < 0) {
|
||||
pa_log("Invalid properties");
|
||||
pa_source_new_data_done(&source_new_data);
|
||||
pa_xfree(name_buf);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
@ -1397,6 +1398,7 @@ int pa__init(pa_module*m) {
|
|||
if (pa_modargs_get_proplist(ma, "sink_properties", sink_new_data.proplist, PA_UPDATE_REPLACE) < 0) {
|
||||
pa_log("Invalid properties");
|
||||
pa_sink_new_data_done(&sink_new_data);
|
||||
pa_xfree(name_buf);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue