aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_main.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2021-01-04 12:46:30 +0100
committerGitHub <noreply@github.com>2021-01-04 12:46:30 +0100
commit3bb12fde6357136c8309e05bd08134f9440bb8ad (patch)
tree06073831f231687868e24be13150680bb78c2c91 /src/lib/ndpi_main.c
parent4ddb5f4245a9c4bd4fba8e0690efddaead92b045 (diff)
Fix memory leak introduced in b7376cc6 (#1100)
Diffstat (limited to 'src/lib/ndpi_main.c')
-rw-r--r--src/lib/ndpi_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 3309e6105..9fc40eb1c 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -6330,13 +6330,13 @@ void ndpi_free_flow(struct ndpi_flow_struct *flow) {
if(flow->protos.stun_ssl.ssl.server_names)
ndpi_free(flow->protos.stun_ssl.ssl.server_names);
- if(!is_quic) {
- if(flow->protos.stun_ssl.ssl.alpn)
- ndpi_free(flow->protos.stun_ssl.ssl.alpn);
+ if(flow->protos.stun_ssl.ssl.alpn)
+ ndpi_free(flow->protos.stun_ssl.ssl.alpn);
- if(flow->protos.stun_ssl.ssl.tls_supported_versions)
- ndpi_free(flow->protos.stun_ssl.ssl.tls_supported_versions);
+ if(flow->protos.stun_ssl.ssl.tls_supported_versions)
+ ndpi_free(flow->protos.stun_ssl.ssl.tls_supported_versions);
+ if(!is_quic) {
if(flow->protos.stun_ssl.ssl.issuerDN)
ndpi_free(flow->protos.stun_ssl.ssl.issuerDN);