mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
pgf_clone_concrete must release the old concrete
This commit is contained in:
@@ -1294,6 +1294,8 @@ PgfConcrRevision pgf_clone_concrete(PgfDB *db, PgfRevision revision,
|
|||||||
namespace_insert(pgf->concretes, clone);
|
namespace_insert(pgf->concretes, clone);
|
||||||
pgf->concretes = concrs;
|
pgf->concretes = concrs;
|
||||||
|
|
||||||
|
PgfDB::free(concr, concr->name.size+1);
|
||||||
|
|
||||||
db->ref_count++;
|
db->ref_count++;
|
||||||
return rev;
|
return rev;
|
||||||
} PGF_API_END
|
} PGF_API_END
|
||||||
|
|||||||
Reference in New Issue
Block a user