(ITS#7965) heap corruption due to returning a reference to the local variable