Fix double free in rate plugin

Fixed double free in rate plugin (bug#1937).
This commit is contained in:
Takashi Iwai 2006-03-17 18:06:23 +00:00
parent 63207b3ad6
commit 8e6ac040a6

View file

@ -619,6 +619,7 @@ static int snd_pcm_rate_hw_free(snd_pcm_t *pcm)
rate->sareas = NULL;
}
free(rate->old_sample);
rate->old_sample = NULL;
return snd_pcm_hw_free(rate->gen.slave);
}