From fd31358505dd794feb153c00bec6d4ee92c851d1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 23 Jan 2014 23:05:47 +0200 Subject: mp_compile(): Properly free module_scope and all nested scopes. --- py/scope.h | 1 + 1 file changed, 1 insertion(+) (limited to 'py/scope.h') diff --git a/py/scope.h b/py/scope.h index 718ce46ec..015a8ba93 100644 --- a/py/scope.h +++ b/py/scope.h @@ -56,6 +56,7 @@ typedef struct _scope_t { } scope_t; scope_t *scope_new(scope_kind_t kind, mp_parse_node_t pn, qstr source_file, uint unique_code_id, uint emit_options); +void scope_free(scope_t *scope); id_info_t *scope_find_or_add_id(scope_t *scope, qstr qstr, bool *added); id_info_t *scope_find(scope_t *scope, qstr qstr); id_info_t *scope_find_global(scope_t *scope, qstr qstr); -- cgit v1.2.3