Avoid double-free