Added another check to StaticFree