Automatic deallocation of struct Scope