SWORD2: Fix (unlikely) memory leak
SWORD2: Fix reference to out-of-scope variable