Fix a few short-lived (minor) resource leaks.
These were pointed out by cppcheck and Dennis Jenkins.
Authored by: faxguy 2013-09-23
Parent: [r2315]
Child: [r2317]