diff options
author | wm4 <wm4@nowhere> | 2015-01-14 22:16:36 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-01-25 17:00:19 +0900 |
commit | 4ebed102f0f638fbd87197e98bb5b42ebb2f4712 (patch) | |
tree | 9196ee2b63116746d731c827ab201a0a30fe123f | |
parent | 371b52e377b74dd16a40f6a418ef72355f303e72 (diff) | |
download | mpv-4ebed102f0f638fbd87197e98bb5b42ebb2f4712.tar.bz2 mpv-4ebed102f0f638fbd87197e98bb5b42ebb2f4712.tar.xz |
ao_alsa: fix a small memory leak
-rw-r--r-- | audio/out/ao_alsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 9669619b3f..ab27039d23 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -615,6 +615,8 @@ static int init(struct ao *ao) } else { CHECK_ALSA_WARN("Channel map setup failed"); } + + free(alsa_chmap); } snd_pcm_chmap_t *alsa_chmap = snd_pcm_get_chmap(p->alsa); |