forked from osmocom/wireshark
tshark: free capture file filename on exit.
Change-Id: I561bc7b46ad8582013d3897ae19801d2fc5a7f49 Reviewed-on: https://code.wireshark.org/review/19950 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
parent
4b423c5fb1
commit
415580b060
7
tshark.c
7
tshark.c
|
@ -2203,6 +2203,7 @@ clean_exit:
|
|||
col_cleanup(&cfile.cinfo);
|
||||
free_filter_lists();
|
||||
wtap_cleanup();
|
||||
cf_close(&cfile);
|
||||
return exit_status;
|
||||
}
|
||||
|
||||
|
@ -4078,6 +4079,12 @@ write_finale(void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
cf_close(capture_file *cf)
|
||||
{
|
||||
g_free(cf->filename);
|
||||
}
|
||||
|
||||
cf_status_t
|
||||
cf_open(capture_file *cf, const char *fname, unsigned int type, gboolean is_tempfile, int *err)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue