From e25562baddd7a675510daea9bb6a6e4ab36b2d68 Mon Sep 17 00:00:00 2001 From: Hadriel Kaplan Date: Mon, 20 Jul 2015 11:09:06 -0400 Subject: Pcapng: clean up Section Header Block handling Change-Id: I8516d0c561ed0b63e49a3594027c9c15bb789258 Reviewed-on: https://code.wireshark.org/review/9726 Reviewed-by: Hadriel Kaplan Petri-Dish: Hadriel Kaplan Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- summary.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'summary.c') diff --git a/summary.c b/summary.c index 8448896326..a84cc5e384 100644 --- a/summary.c +++ b/summary.c @@ -105,7 +105,7 @@ summary_fill_in(capture_file *cf, summary_tally *st) { frame_data *first_frame, *cur_frame; guint32 framenum; - wtapng_section_t* shb_inf; + const wtapng_section_t* shb_inf; iface_options iface; guint i; wtapng_iface_descriptions_t* idb_info; @@ -156,7 +156,7 @@ summary_fill_in(capture_file *cf, summary_tally *st) st->dfilter = cf->dfilter; /* Get info from SHB */ - shb_inf = wtap_file_get_shb_info(cf->wth); + shb_inf = wtap_file_get_shb(cf->wth); if(shb_inf == NULL){ st->opt_comment = NULL; st->shb_hardware = NULL; @@ -167,7 +167,6 @@ summary_fill_in(capture_file *cf, summary_tally *st) st->shb_hardware = shb_inf->shb_hardware; st->shb_os = shb_inf->shb_os; st->shb_user_appl = shb_inf->shb_user_appl; - g_free(shb_inf); } st->ifaces = g_array_new(FALSE, FALSE, sizeof(iface_options)); -- cgit v1.2.1