summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmllint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmllint.c b/xmllint.c
index d84f084f..2bbe91d6 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -3758,7 +3758,7 @@ main(int argc, char **argv) {
xmlSchemaFree(wxschemas);
xmlRelaxNGCleanupTypes();
#endif
-#ifdef LIBXML_PATTERN_ENABLED
+#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED)
if (patternc != NULL)
xmlFreePattern(patternc);
#endif