diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-08-02 02:35:57 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-08-02 02:35:57 +0000 |
commit | 582a64f482599aaa34cc57b2375acc40dee21c63 (patch) | |
tree | 153b0e23cd54f0846dca8f2a4de23f14ee94585f /wiretap | |
parent | a75f7d1d24c1045559d52f4e8e5d0c4ae9d80123 (diff) |
Add to "wtap_close()" code to free up data structures allocated for
reading RADCOM WAN/LAN analyzer files and NetXRay/Windows Sniffer files.
svn path=/trunk/; revision=418
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/wtap.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index a025806c7a..aae8794639 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1,6 +1,6 @@ /* wtap.c * - * $Id: wtap.c,v 1.12 1999/08/02 02:04:38 guy Exp $ + * $Id: wtap.c,v 1.13 1999/08/02 02:35:57 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@verdict.uthscsa.edu> @@ -96,10 +96,18 @@ void wtap_close(wtap *wth) g_free(wth->capture.ngsniffer); break; + case WTAP_FILE_RADCOM: + g_free(wth->capture.radcom); + break; + case WTAP_FILE_NETMON: g_free(wth->capture.netmon); break; + case WTAP_FILE_NETXRAY: + g_free(wth->capture.netxray); + break; + /* default: nothing */ } |