Release YangParser from ProcessorModuleReactor
Once we have built the SchemaContext, we should not be retaining
the YangParser instance, as it contains a reference to
BuildGlobalContext, which in turn holds all the scratch data
used during SchemaContext assembly.
Throw all of that away as soon as we have a SchemaContext.
JIRA: YANGTOOLS-1061
Change-Id: Idbc4ab91861e3e7581daa3cebceb0fa49823a028
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
de31cd1e591ab1a83ca3fafd20220d3937463b8a)