extcap: another round of memory leak fixes
authorPeter Wu <peter@lekensteyn.nl>
Thu, 29 Jun 2017 22:33:46 +0000 (00:33 +0200)
committerAnders Broman <a.broman58@gmail.com>
Fri, 30 Jun 2017 05:47:54 +0000 (05:47 +0000)
commit1c7e393af3dd5561f6a54dc93546cfd3e7af2286
tree649b4cb9ed0ad29d3c435bf0925229cd6c518432
parent247446539704aee99f64e73a77e5e88a40ae885a
extcap: another round of memory leak fixes

Fix assorted memory leaks. Note that _tool_for_ifname is cleaned up at
exit by extcap_cleanup, but lacked key/value destructors, so add them.
After this, ASAN reports no more extcap memleaks.

Change-Id: Ie5f4b1e2453a0beb52d617670202973839ca1416
Reviewed-on: https://code.wireshark.org/review/22466
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
extcap.c