ao_alsa: fix a small memory leak

This commit is contained in:
wm4 2015-01-14 22:16:36 +01:00 committed by Diogo Franco (Kovensky)
parent 371b52e377
commit 4ebed102f0
1 changed files with 2 additions and 0 deletions

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);