Fix memory leak.
Use __builtin_expect() in ASSERT to provide expected branch information to compiler.