diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-10-04 11:31:19 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-10-04 15:45:02 +0000 |
commit | c647faa8a90739963ba40a099a365197f90b2184 (patch) | |
tree | 779aa416faca634eb3eb5dcd84e8421a75720ce2 /caputils | |
parent | 49151eb28c421b61a89bd18feb509e9428909b1e (diff) | |
download | wireshark-c647faa8a90739963ba40a099a365197f90b2184.tar.gz wireshark-c647faa8a90739963ba40a099a365197f90b2184.tar.bz2 wireshark-c647faa8a90739963ba40a099a365197f90b2184.zip |
Fix various memleaks
Found by starting Wireshark within an empty profile, opening
Preferences, search for Protocol "IEEE 802.11" (because it has radio
buttons), then close everything again.
Many fixes are trivial, but the various recent_read_* functions in
recent.c were changed to return a boolean such that the result can
always be checked even if errno==0.
QButtonGroup leak was hinted by Clang Static Analyzer, all other
memleaks were found using ASAN/LSan.
Change-Id: Ia73f5d4c09d92f22e72377be59e23342f8ad7211
Reviewed-on: https://code.wireshark.org/review/10776
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'caputils')
-rw-r--r-- | caputils/capture-pcap-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/caputils/capture-pcap-util.c b/caputils/capture-pcap-util.c index a648eff0ba..9133a3dca1 100644 --- a/caputils/capture-pcap-util.c +++ b/caputils/capture-pcap-util.c @@ -625,6 +625,7 @@ free_linktype_cb(gpointer data, gpointer user_data _U_) g_free(linktype_info->name); g_free(linktype_info->description); + g_free(linktype_info); } void |