Sorry about all that - I was pretty sure there wasn't an issue with something so simple (in fact I remember looking for a memory leak in GPS before so I'm amazed I didn't find this one at the same time).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Wow, that was bad. There was a leak in
String.split
.I've fixed it now (so it'll be fixed in 1v68), and you'll be able to pick up the latest build via http://www.espruino.com/binaries/git/commits/f4de82e93f6efc911299b30293128c6b51999d20 in about an hour.
Sorry about all that - I was pretty sure there wasn't an issue with something so simple (in fact I remember looking for a memory leak in GPS before so I'm amazed I didn't find this one at the same time).