Occurred when empty data was produced and metadata did not have the
attribute "empty". The empty attribute was introduced in PAZ-858.
if (!value0 || !*value0)
{
const char *empty = yaz_xml_get_prop(n, "empty");
+ if (value0)
+ xmlFree(value0);
if (!empty)
continue;
wrbuf_puts(wrbuf_disp, (const char *) empty);
else
{
wrbuf_puts(wrbuf_disp, (const char *) value0);
- }
- if (value0)
xmlFree(value0);
+ }
ser_md = &service->metadata[md_field_id];
// non-merged metadata