fix memleak in rollback_and_snapshot_test

Change-Id: I1d1eeaefe73f3f94b97ecabe10c4d392db999bbb