os_free now fails if try to free shared memory