libiwinfo: rework nl80211 interface code, plug remaining memory leaks