[2014.1] Fix #10404 vt ptys not released