diff --git a/utils/xmlgrep/xml.c b/utils/xmlgrep/xml.c index 3d8ff17fc..e24899e8e 100644 --- a/utils/xmlgrep/xml.c +++ b/utils/xmlgrep/xml.c @@ -131,7 +131,7 @@ xmlClose(void *id) assert(xid->name == 0); munmap(xid->start, xid->len); - close((int)xid->node.len); + close(xid->node.fd); free(id); id = 0; }