MFC r263846: sh: Fix memory leak when trying to set a read only variable.