Pinoccio/library-pinoccio — pull request #84 by erictj (2014-03-14 02:50:34+00:00)
Title: Resetting Lead Scout deep-dive

In leadHQHandle
- Changed buffer variable to non-static
- Removed initial malloc() for buffer, as realloc() acts as malloc() the first time
- Remove the realloc() shrinking at end
- Add free(buffer) to end of call to fix a 1-byte-per-HQ-call memory leak

In leadIncoming
- Copy incoming packet to local string

In leadSignal
- Scout.wifi.client.write(json) without an explicit length was defaulting to using
sizeof(json). Passed as Scout.wifi.client.write(json, strlen(json)) fixes this.

In leadAnnouncementSend
- Copy result of report2json to local string