ALSA: synth: emux: soundfont.c: Cleaning up memory leak
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 1 Jun 2014 11:35:24 +0000 (13:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 1 Jun 2014 12:33:09 +0000 (14:33 +0200)
commit14577c25169beb8676577490bf2f0bd539d5e999
tree2871257d84a53430a2224d08d14ae3a81d9f3834
parent2c6db77c021e89985c512ec9db9cbc5a34a7e3d9
ALSA: synth: emux: soundfont.c: Cleaning up memory leak

There is a risk for memory leak in when something unexpected happens
and the function returns.

This was largely found by using a static code analysis program called cppcheck.

[fixed a typo of kfree() by tiwai]

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/synth/emux/soundfont.c