[OSSN-0088] Some of the Glance metadef APIs likely to leak resources