diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-14 06:35:25 +0000 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-14 09:37:35 +0000 |
commit | 3d9603e051fc6dfd16ce4aea17075d5f348d2985 (patch) | |
tree | abacea56479442b11755c5efae7782087d592d5d /ui | |
parent | 7a7da50fc3081525797ff3dd6350def0094b613a (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.
(cherry picked from commit d4c55ba464f2b6842a0a05fc623030b80322367a)
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 c3c00188db..5d2e50fba5 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; } |