Free capture filename on shutdown

svn path=/trunk/; revision=30165
This commit is contained in:
Kovarththanan Rajaratnam 2009-09-26 06:41:20 +00:00
parent f4db31c8d8
commit 29c7430fb6
1 changed files with 2 additions and 1 deletions

View File

@ -1560,7 +1560,6 @@ main(int argc, char *argv[])
epan_cleanup();
exit(2);
}
cf_name[0] = '\0';
} else {
/* No capture file specified, so we're supposed to do a live capture
(or get a list of link-layer types for a live capture device);
@ -1629,6 +1628,8 @@ main(int argc, char *argv[])
#endif
}
g_free(cf_name);
#if GLIB_CHECK_VERSION(2,10,0)
if (cfile.plist_start != NULL)
g_slice_free_chain(frame_data, cfile.plist_start, next);