An error occurs when the memory if freed