coverity resource leak fixes

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>