* Free list returned by wlan_sta_scan_result()
* scanAlloc improvements
There were a few things I didn't like about this function:
1) realloc() was called a bit too often.
2) if realloc() failed, the previous memory was not freed.
3) scanAlloc returned previous count or 255 on error. But there was no real check for error and 255 could've been used as index to null. I think it's better to simple return boolean.
4) scanAlloc was clearing memory only up to (and excluding) the new entries.
* Corrected clearing new entries in scanAlloc
* scanAlloc() now returns number of allocated items
* Fixed compilation issues related to goto.