All malloc-ed memory are freed.