aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netxray.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-03-25 22:04:15 +0000
committerEvan Huus <eapache@gmail.com>2013-03-25 22:04:15 +0000
commit202680971de2da8c7939e3eb490c4a8be2455d6b (patch)
treebe91902bf2e94fbe2d6b2e22846c6f8bf9fa177b /wiretap/netxray.c
parent93be2ad48ae63557378292f82854d93fb14b4305 (diff)
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
Diffstat (limited to 'wiretap/netxray.c')
-rw-r--r--wiretap/netxray.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/wiretap/netxray.c b/wiretap/netxray.c
index 8acf26a86e..6fb6bbc1e0 100644
--- a/wiretap/netxray.c
+++ b/wiretap/netxray.c
@@ -901,7 +901,6 @@ int netxray_open(wtap *wth, int *err, gchar **err_info)
/* Seek to the beginning of the data records. */
if (file_seek(wth->fh, netxray->start_offset, SEEK_SET, err) == -1) {
- g_free(netxray);
return -1;
}