Skip to content

Commit

Permalink
Remore memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Nov 6, 2024
1 parent 0873fdb commit 123798d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/dlite-collection.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ int dlite_collection_deinit(DLiteInstance *inst)
NULL))) {
if ((inst2 = dlite_instance_get(r->o))) {
dlite_instance_decref(inst2);
dlite_instance_decref(inst2);
} else {
warnx("cannot remove missing instance: %s", r->o);
}
Expand Down
4 changes: 2 additions & 2 deletions src/triplestore-redland.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ TripleStore *triplestore_create()
void triplestore_free(TripleStore *ts)
{
Globals *g = get_globals();
assert(g->nmodels > 0);
g->nmodels--;
assert(g->nmodels > 0);
g->nmodels--;
librdf_free_storage(ts->storage);
librdf_free_model(ts->model);
if (ts->storage_name) free((char *)ts->storage_name);
Expand Down

0 comments on commit 123798d

Please sign in to comment.