mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
modules: Fix resource leak in stream-restore
https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8726&defectInstanceId=3724&mergedDefectId=591260 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
8fa5bdc087
commit
bbed792cdf
1 changed files with 3 additions and 1 deletions
|
|
@ -2119,8 +2119,10 @@ static int extension_cb(pa_native_protocol *p, pa_module *m, pa_native_connectio
|
|||
pa_tagstruct_get_channel_map(t, &entry->channel_map) ||
|
||||
pa_tagstruct_get_cvolume(t, &entry->volume) < 0 ||
|
||||
pa_tagstruct_gets(t, &device) < 0 ||
|
||||
pa_tagstruct_get_boolean(t, &muted) < 0)
|
||||
pa_tagstruct_get_boolean(t, &muted) < 0) {
|
||||
entry_free(entry);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!name || !*name) {
|
||||
entry_free(entry);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue