Fix memory leak in physical-device-vn UT