Fixed leak with DTLS

This commit is contained in:
Luca Deri
2021-02-03 23:36:11 +01:00
parent 6289413fea
commit 6c366d73e2
+4 -1
View File
@@ -6467,7 +6467,10 @@ void ndpi_free_flow_data(struct ndpi_flow_struct *flow) {
if(flow->kerberos_buf.pktbuf)
ndpi_free(flow->kerberos_buf.pktbuf);
if(is_quic || flow_is_proto(flow, NDPI_PROTOCOL_TLS)) {
if(is_quic
|| flow_is_proto(flow, NDPI_PROTOCOL_TLS)
|| flow_is_proto(flow, NDPI_PROTOCOL_DTLS)
) {
if(flow->protos.tls_quic_stun.tls_quic.server_names)
ndpi_free(flow->protos.tls_quic_stun.tls_quic.server_names);