1
0
Fork 0

remove config file from memory

This commit is contained in:
Kevin Matz 2019-11-17 13:04:54 -05:00
parent b095913334
commit f9fe9237d0
1 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,15 @@ for name in config.get('network', 'hogs').split(',').strip('\"'):
print('Error configuring button', b, e)
continue
# clear temp variables off the stack
try:
del ip, port, net
del server, config
except NameError as e:
print('failed to release memory', e)
walker = ParseTreeWalker()
listener = OscCommentMacroListener(servers)