X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fxml.c;h=baf51941eaa1308337a436dc1c0321da698e4246;hb=7bc9a01d5260f39f5d8c14a5478e3eada7d08ddd;hp=a6dab415e891fdf996769bc0ec26f7e6e48207bb;hpb=5277f18435ae7297f4f6cbec86193240a06227a7;p=wimlib diff --git a/src/xml.c b/src/xml.c index a6dab415..baf51941 100644 --- a/src/xml.c +++ b/src/xml.c @@ -809,7 +809,10 @@ xml_export_image(const struct wim_xml_info *src_info, int src_image, xmlFreeProp(unlink_index_attribute(dest_node)); - return append_image_node(dest_info, dest_node); + ret = append_image_node(dest_info, dest_node); + if (ret) + goto err; + return 0; err: xmlFreeNode(dest_node);