* Reads the XML data from a WIM file.
*/
int
-read_xml_data(filedes_t in_fd,
+read_xml_data(int in_fd,
const struct resource_entry *res_entry,
struct wim_info **info_ret)
{
DEBUG("Ended XML document");
- /* Call xmlFreeTextWriter() before ftello() because the former will
- * flush the file stream. */
- xmlFreeTextWriter(writer);
- writer = NULL;
-
end_offset = filedes_offset(out_fd);
if (end_offset == -1) {
ret = WIMLIB_ERR_WRITE;