Wiretap file open routines should not free wth->priv on error, since that
authorEvan Huus <eapache@gmail.com>
Mon, 25 Mar 2013 22:04:15 +0000 (22:04 -0000)
committerEvan Huus <eapache@gmail.com>
Mon, 25 Mar 2013 22:04:15 +0000 (22:04 -0000)
commit202680971de2da8c7939e3eb490c4a8be2455d6b
treebe91902bf2e94fbe2d6b2e22846c6f8bf9fa177b
parent93be2ad48ae63557378292f82854d93fb14b4305
Wiretap file open routines should not free wth->priv on error, since that
leads to a double-free in wtap_close. Fix all the instances I found via
manual code review, and add a brief comment to the list of open routines in
file_access.c

Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8518

svn path=/trunk/; revision=48552
wiretap/ascendtext.c
wiretap/file_access.c
wiretap/lanalyzer.c
wiretap/libpcap.c
wiretap/netmon.c
wiretap/nettl.c
wiretap/netxray.c