Attempt to fix minor memory leaks -- may be false positives.