Make the static analyzer a little happier

Some possible leaks in error cases.

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>