summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ezxml.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ezxml.c b/ezxml.c
index 3b6094e..4a063bc 100644
--- a/ezxml.c
+++ b/ezxml.c
@@ -14,11 +14,7 @@ int process(char *fn) {
printf("article-title: %s\n", title->txt);
}
- ezxml_t body = ezxml_get(ezdoc, "body", -1);
- if (!body) {
- fprintf(stderr, "No body-tag found in file '%s'. Exiting.\n", fn);
- return 1;
- }
+ ezxml_free(ezdoc);
return 0;
}