aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authoremanuele-f <black.silver@hotmail.it>2019-04-12 19:39:01 +0200
committeremanuele-f <black.silver@hotmail.it>2019-04-12 19:39:01 +0200
commit0961caec1bc038269a1c83976a4047bd57e0630b (patch)
tree511c1df766e0f97918701ca4f6dc948cd9505d0e /example
parent1bf9351a6768cdd9bbaa345be0c5031cbf45d684 (diff)
Add missing fclose in ndpiReader
Diffstat (limited to 'example')
-rw-r--r--example/ndpiReader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index 542b11ab4..da64bdb21 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -1521,6 +1521,8 @@ static void setupDetection(u_int16_t thread_id, pcap_t * pcap_handle) {
ndpi_enable_loaded_categories(ndpi_thread_info[thread_id].workflow->ndpi_struct);
} else
printf("ERROR: Unable to read file %s\n", _customCategoryFilePath);
+
+ fclose(fd);
}
}