JsVar leak ? #6796
Unanswered
espruino-discuss
asked this question in
Porting to new Devices
JsVar leak ?
#6796
Replies: 1 comment
-
Posted at 2017-11-28 by @gfwilliams You're not unlocking the string created by This should be fine?
I would strongly advise not keeping a global Posted at 2017-11-29 by JumJum Switched to execInfo.hiddenRoot and got everything running. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-11-28 by JumJum
I've a memory leak (JsVars) in my bluetooth implementation.
For easy testing I built a simple testfunction.
After each call of this function, process.memory.free is reduced by 2
Whats wrong in my code.
Tried to add jsvUnLock and/or jsvUnRef on tmp, and sooner or later got HALT
Beta Was this translation helpful? Give feedback.
All reactions