Fix error in mem_free where we were initializing the wrong node