Remove custom free function, it is no longer needed for other code