mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
modules: Fix resource leak in alsa-ucm
https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8833&defectInstanceId=3732&mergedDefectId=591268 Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
a4b8a9d5a2
commit
9a341c6b36
1 changed files with 1 additions and 2 deletions
|
|
@ -1106,8 +1106,7 @@ static void alsa_mapping_add_ucm_modifier(pa_alsa_mapping *m, pa_alsa_ucm_modifi
|
|||
m->description = pa_xstrdup(new_desc);
|
||||
pa_xfree(cur_desc);
|
||||
|
||||
if (!m->description)
|
||||
pa_xstrdup("");
|
||||
m->description = m->description ? m->description : pa_xstrdup("");
|
||||
|
||||
/* Modifier sinks should not be routed to by default */
|
||||
m->priority = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue