Dont free time_param[0]
I compiled encoder_example.c and tested.
and found memory leak.
in vorbisenc.c
static int vorbis_encode_toplevel_setup(vorbis_info *vi,int small,int large,int
ch,long rate){
...
ci->time_param[0]=calloc(1,sizeof(_time_dummy));
...
}
This heap memory is not called free().
because, in time0.c
static void time0_free_info(vorbis_info_time *i){
}
so,I added one line.
static void time0_free_info(vorbis_info_time *i){
free(i);
}