mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pw-cat: fix leak in channel parsing
This commit is contained in:
parent
2bb1d88fbe
commit
022705d813
1 changed files with 1 additions and 2 deletions
|
|
@ -513,10 +513,9 @@ static int parse_channelmap(const char *channel_map, struct channelmap *map)
|
|||
map->n_channels = nch;
|
||||
for (i = 0; i < map->n_channels; i++) {
|
||||
int c = find_channel(ch[i]);
|
||||
if (c == SPA_AUDIO_CHANNEL_UNKNOWN)
|
||||
return -1;
|
||||
map->channels[i] = c;
|
||||
}
|
||||
pw_free_strv(ch);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue