Snapshot are now allocated before being returned in the get_next_snapshot_from_object function in the buffer (and the same for previous)