Fix a memory leak in struct S_Scope