aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 46656cb96..3566e93d8 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1909,9 +1909,8 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
ndpi_load_ip_category(ndpi_thread_info[thread_id].workflow->ndpi_struct,
name, (ndpi_protocol_category_t)atoi(category));
else {
- /* TODO free the strdup */
ndpi_load_hostname_category(ndpi_thread_info[thread_id].workflow->ndpi_struct,
- strdup(name), (ndpi_protocol_category_t)atoi(category));
+ name, (ndpi_protocol_category_t)atoi(category));
}
}
}