aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-03-12 14:18:04 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-03-12 14:18:04 +0000
commit3394b453aff33812913c78ae6eacdbfe6763ced1 (patch)
treeaeb02a148ee0435b000f1085313a63398adb2c89 /tshark.c
parentd772d2acd26477b4cef7903e499c84dbaec02985 (diff)
Free idb_inf and shb_hdr when done.
svn path=/trunk/; revision=41501
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 3707f08004..27bd9aa3b3 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2826,6 +2826,8 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
break;
}
wtap_dump_close(pdh, &err);
+ g_free(idb_inf);
+ g_free(shb_hdr);
exit(2);
}
}
@@ -2876,6 +2878,8 @@ load_cap_file(capture_file *cf, char *save_file, int out_file_type,
break;
}
wtap_dump_close(pdh, &err);
+ g_free(idb_inf);
+ g_free(shb_hdr);
exit(2);
}
}
@@ -2982,6 +2986,8 @@ out:
cf->wth = NULL;
g_free(save_file_string);
+ g_free(idb_inf);
+ g_free(shb_hdr);
return err;
}