]> git.alsa-project.org Git - alsa-lib.git/commit
conf: fix memory leak in snd_config_substitute() for strings
authorJaroslav Kysela <perex@perex.cz>
Fri, 13 May 2022 14:19:48 +0000 (16:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 13 May 2022 14:19:50 +0000 (16:19 +0200)
commit3e5a8943781d17361ffe79e03c23e76946fcd67f
tree186ecfc2b3de829a97fd0e6beff5d3f02bf4e1fa
parent50140120c696bec133f418a144b1ff609254ab4b
conf: fix memory leak in snd_config_substitute() for strings

When destination type is SND_CONFIG_TYPE_STRING, the old string
must be freed.

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