Avoid double free