address coverity-found memleak of data on error case

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