AaronRobinsonMSFT / DNMD

Reimplementation of ECMA-335 metadata APIs
MIT License
16 stars 3 forks source link

Fix refcount leaks in dnmd::interfaces #41

Closed jkoritzinsky closed 10 months ago

jkoritzinsky commented 10 months ago

The new mdhandle_view type and the tear-off mechanism in combination with dncp::com_ptr's refcounting semantics lead to use leaking one refcount and creating a self-referential refcount cycle. This PR fixes both and ensures we don't leak.