diff options
author | Evan Huus <eapache@gmail.com> | 2013-03-25 22:04:15 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-03-25 22:04:15 +0000 |
commit | 202680971de2da8c7939e3eb490c4a8be2455d6b (patch) | |
tree | be91902bf2e94fbe2d6b2e22846c6f8bf9fa177b /wiretap/ascendtext.c | |
parent | 93be2ad48ae63557378292f82854d93fb14b4305 (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/ascendtext.c')
-rw-r--r-- | wiretap/ascendtext.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/wiretap/ascendtext.c b/wiretap/ascendtext.c index bac0cccb0e..d0b4e765c6 100644 --- a/wiretap/ascendtext.c +++ b/wiretap/ascendtext.c @@ -225,7 +225,6 @@ int ascend_open(wtap *wth, int *err, gchar **err_info) offset that we can apply to each packet. */ if (wtap_fstat(wth, &statbuf, err) == -1) { - g_free(ascend); return -1; } ascend->inittime = statbuf.st_ctime; |