OSDN Git Service

conf: fix snd_config_substitute() - memory leak
authorJaroslav Kysela <perex@perex.cz>
Wed, 12 May 2021 09:39:05 +0000 (11:39 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 12 May 2021 10:09:37 +0000 (12:09 +0200)
commit8f236983b64f5ba5ed2c68905792e367489e0316
treedcbb1a60506b0b41f1e00efc55e1cfdb3450b5a9
parent1a52373fbc9414a8e8ec9d1470c0879e1c09fcec
conf: fix snd_config_substitute() - memory leak

There's an issue with the current code: It says append for compounds,
but it does overwrite without the proper members delete from
the overwritten (destination) compound node.

Don't change the behaviour, just fix the comment and memory leak.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c