Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
circuitpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
circuitpython
Commits
c1d200ef
Commit
c1d200ef
authored
Jan 25, 2014
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt_deinit(): Finalize some maps.
parent
9a24a046
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
py/runtime.c
py/runtime.c
+4
-0
No files found.
py/runtime.c
View file @
c1d200ef
...
...
@@ -165,6 +165,7 @@ void rt_init(void) {
mp_module_micropython_init
();
// TODO: wastes one mp_code_t structure in mem
next_unique_code_id
=
1
;
// 0 indicates "no code"
unique_codes_alloc
=
0
;
unique_codes
=
NULL
;
...
...
@@ -176,6 +177,9 @@ void rt_init(void) {
void
rt_deinit
(
void
)
{
m_del
(
mp_code_t
,
unique_codes
,
unique_codes_alloc
);
mp_map_free
(
map_globals
);
mp_map_deinit
(
&
map_loaded_modules
);
mp_map_deinit
(
&
map_builtins
);
#ifdef WRITE_CODE
if
(
fp_write_code
!=
NULL
)
{
fclose
(
fp_write_code
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment