Add note on memory problems.
Actually free memory for used_inputs.