After destroying the mem chunk for the packet list, null out the pointer
pointing to it, so that if we call "close_cap_file()" again, we don't try to destroy an already-destroyed mem chunk. svn path=/trunk/; revision=1806
This commit is contained in:
parent
a03f3029af
commit
f9acb5fdb7
6
file.c
6
file.c
|
@ -1,7 +1,7 @@
|
|||
/* file.c
|
||||
* File I/O routines
|
||||
*
|
||||
* $Id: file.c,v 1.178 2000/04/04 05:14:48 guy Exp $
|
||||
* $Id: file.c,v 1.179 2000/04/06 06:04:24 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -209,8 +209,10 @@ close_cap_file(capture_file *cf, void *w)
|
|||
/* ...which means we have nothing to save. */
|
||||
cf->user_saved = FALSE;
|
||||
|
||||
if (cf->plist_chunk != NULL)
|
||||
if (cf->plist_chunk != NULL) {
|
||||
g_mem_chunk_destroy(cf->plist_chunk);
|
||||
cf->plist_chunk = NULL;
|
||||
}
|
||||
if (cf->rfcode != NULL) {
|
||||
dfilter_destroy(cf->rfcode);
|
||||
cf->rfcode = NULL;
|
||||
|
|
Loading…
Reference in New Issue