projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Metadata 'skiparticle works for ICU normalization
[pazpar2-moved-to-github.git]
/
src
/
normalize_record.c
diff --git
a/src/normalize_record.c
b/src/normalize_record.c
index
322566e
..
dfca8bb
100644
(file)
--- a/
src/normalize_record.c
+++ b/
src/normalize_record.c
@@
-137,17
+137,17
@@
int normalize_record_transform(normalize_record_t nt, xmlDoc **doc,
{
new = marcmap_apply(m->marcmap, *doc);
}
-
+
root = xmlDocGetRootElement(new);
+ xmlFreeDoc(*doc);
if (!new || !root || !root->children)
{
if (new)
xmlFreeDoc(new);
- xmlFreeDoc(*doc);
+ *doc = 0;
return -1;
}
- xmlFreeDoc(*doc);
*doc = new;
}
}