summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-01-30 22:36:30 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-01-30 22:36:30 +0000
commitf9d169142dd652f5e077e1c2391facaa6bf40f4d (patch)
treeae84bb1488331c0706fc9a80949cfd58fb5684e8 /xmllint.c
parent8f2efae484061636a787f3c330f577e070c99eca (diff)
downloadlibxml2-f9d169142dd652f5e077e1c2391facaa6bf40f4d.tar.gz
added first test for the patterns a few fixes Daniel
* Makefile.am configure.in result/pattern/simple test/pattern/simple.*: added first test for the patterns * pattern.c xmllint.c: a few fixes Daniel
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmllint.c b/xmllint.c
index 993c8816..52e05eb9 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -865,8 +865,6 @@ static void processNode(xmlTextReaderPtr reader) {
fprintf(stderr,
" pattern %s node %s\n",
pattern, path);
- if (path != NULL)
- xmlFree(path);
}
@@ -879,6 +877,8 @@ static void processNode(xmlTextReaderPtr reader) {
}
}
}
+ if (path != NULL)
+ xmlFree(path);
}
#endif
}