...
|
...
|
@@ -117,6 +117,8 @@ static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** ck
|
117
|
117
|
*hash = XAR_CKSUM_OTHER;
|
118
|
118
|
}
|
119
|
119
|
}
|
|
120
|
+ if (style != NULL)
|
|
121
|
+ xmlFree(style);
|
120
|
122
|
|
121
|
123
|
if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) {
|
122
|
124
|
xmlval = xmlTextReaderConstValue(reader);
|
...
|
...
|
@@ -216,6 +218,8 @@ static int xar_get_toc_data_values(xmlTextReaderPtr reader, long *length, long *
|
216
|
216
|
cli_dbgmsg("cli_scaxar: unknown style value=%s for encoding element\n", style);
|
217
|
217
|
*encoding = CL_TYPE_ANY;
|
218
|
218
|
}
|
|
219
|
+ if (style != NULL)
|
|
220
|
+ xmlFree(style);
|
219
|
221
|
|
220
|
222
|
} else if (indata && xmlStrEqual(name, (const xmlChar *)"data") &&
|
221
|
223
|
xmlTextReaderNodeType(reader) == XML_READER_TYPE_END_ELEMENT) {
|