[libvirt] [PATCH] snapshot: fix memory leak on error