ao_alsa: fix a small memory leak

This commit is contained in:
wm4
2015-01-25 17:00:19 +09:00
committed by Diogo Franco (Kovensky)
parent 371b52e377
commit 4ebed102f0
+2
View File
@@ -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);