fix file descriptor leak
This commit is contained in:
parent
59e6701969
commit
946a10111c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue