I couldn't find any bug reporting link in your site so I'm posting to this list. I found a bug in the sample code program: sampledec.c. The program uses speex_encoder_destroy() to free the data instead of using speex_decoder_destroy().