Remove dead code.
Do not leak memory under low memory conditions.