summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-14 22:16:36 +0100
committerwm4 <wm4@nowhere>2015-01-14 22:16:36 +0100
commitc757a06845dbc5406f722bc129d153dc7620084f (patch)
tree3834fefe62134de4d21b9abf7cda1e9bada7c353
parente865d255d0a61abe5be8fad27b2f5e59381cb53a (diff)
downloadmpv-c757a06845dbc5406f722bc129d153dc7620084f.tar.bz2
mpv-c757a06845dbc5406f722bc129d153dc7620084f.tar.xz
ao_alsa: fix a small memory leak
-rw-r--r--audio/out/ao_alsa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 30c7b05a6f..014cd837af 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -555,6 +555,8 @@ static int init_device(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);