use free() instead of pointless freep() in imdct_end().