Commit c526efeb authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix resource leak

CID:35317
parent 0bd8aade
......@@ -58,8 +58,10 @@ SchemaRegistry::SchemaRegistry()
schema->d->load(fileName);
if (schemaFromUri(schema->uri())) {
errMetaData << "Schema already exist uri: " << schema->uri();
delete schema;
} else if (schemaFromPrefix(schema->prefix())) {
errMetaData << "Schema already exist prefix: " << schema->prefix();
delete schema;
} else {
d->uri2Schema[schema->uri()] = schema;
d->prefix2Schema[schema->prefix()] = schema;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment