hdspmixer - small memory leak fix

ALSA bug#3687
	https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3687

the hdspmixer application leaks one memory block, a c-style string
which is obtained by snd_card_get_longname, but never freed ...
This commit is contained in:
Takashi Iwai 2008-01-29 13:22:33 +01:00
parent 60cb55c0f3
commit 18a3037d87

View file

@ -72,6 +72,7 @@ int main(int argc, char **argv)
}
}
}
free(name);
if (!cards) {
printf("No Hammerfall DSP card found.\n");
exit(EXIT_FAILURE);