diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-13 22:35:25 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-13 22:35:25 -0800 |
commit | d4c55ba464f2b6842a0a05fc623030b80322367a (patch) | |
tree | f93328d0116293e56ffe0bf4cfec5b449bfe1f32 /ui | |
parent | 610dffbb19532034309a0ee326128a71608ebe6a (diff) |
tap_export_pdu: free err_info for WTAP_ERR_INTERNAL.
WTAP_ERR_INTERNAL also returns an err_info script describing the
internal error, so it should be freed to avoid leaking it.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/tap_export_pdu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/tap_export_pdu.c b/ui/tap_export_pdu.c index a71e9db1c3..dfbcfb027c 100644 --- a/ui/tap_export_pdu.c +++ b/ui/tap_export_pdu.c @@ -73,6 +73,10 @@ export_pdu_packet(void *tapdata, packet_info *pinfo, epan_dissect_t *edt, const g_free(err_info); break; + case WTAP_ERR_INTERNAL: + g_free(err_info); + break; + default: break; } |