Should have been part of r41542: Don't free idb_inf in wtap_dump_open_ng(): free it in the callers.

svn path=/trunk/; revision=41553
This commit is contained in:
Jeff Morriss 2012-03-15 02:35:49 +00:00
parent 2d829b392f
commit 9e8148eeef
1 changed files with 5 additions and 2 deletions

3
file.c
View File

@ -3855,6 +3855,9 @@ cf_save(capture_file *cf, const char *fname, packet_range_t *range, guint save_f
pdh = wtap_dump_open_ng(fname, save_format, cf->lnk_t, cf->snap,
compressed, shb_hdr, idb_inf, &err);
g_free(idb_inf);
idb_inf = NULL;
if (pdh == NULL) {
cf_open_failure_alert_box(fname, err, NULL, TRUE, save_format);
goto fail;