summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
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
}