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 d4c55ba464)
This commit is contained in:
Guy Harris 2021-03-14 06:35:25 +00:00
parent 7a7da50fc3
commit 3d9603e051
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}