fix file descriptor leak

This commit is contained in:
Jindřich Makovička 2012-05-12 12:33:39 +02:00
parent 59e6701969
commit 946a10111c

View file

@ -390,6 +390,7 @@ void RenderingRulesStorage::parseRulesFromXmlInputStream(const char* filename, R
done = true;
}
if (XML_Parse(parser, buffer, len, done) == XML_STATUS_ERROR) {
fclose(file);
return;
}
}
@ -428,6 +429,7 @@ void RenderingRulesStorage::parseRulesFromXmlInputStream(const char* filename, R
}
}
fclose(file);
}