Fix double heap deallocation when erroneous SET was specified.