vector move memory leak fix