mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: free the strdup'd substring on error
n is the return value of pa_split() Found by scan-build
This commit is contained in:
parent
bc64b32798
commit
e83f039833
1 changed files with 1 additions and 0 deletions
|
|
@ -2553,6 +2553,7 @@ static int element_parse_override_map(pa_config_parser_state *state) {
|
|||
|
||||
if (i >= (unsigned)channel_count) {
|
||||
pa_log("[%s:%u] Invalid override map size (>%d) in '%s'", state->filename, state->lineno, channel_count, state->section);
|
||||
pa_xfree(n);
|
||||
return -1;
|
||||
}
|
||||
channel_position = alsa_channel_positions[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue