aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuca Deri <lucaderi@users.noreply.github.com>2019-10-20 11:47:13 +0200
committerGitHub <noreply@github.com>2019-10-20 11:47:13 +0200
commitc1ba4764b54be167459e5647efe1c8d57310f151 (patch)
tree6be0cb515137ecf4ff7bfcb96a000029596b3c20 /src/lib
parent604abaf81cc9da64b8fd635076475ced3888b293 (diff)
parent7cb3cb735304445f6ea2e64bb30d8317ea66c60b (diff)
Merge pull request #799 from ntop/ndpi_memleak_fix
Fix memory leak in ndpiReader.
Diffstat (limited to 'src/lib')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c
index 65ff159e7..995bc4c26 100644
--- a/src/lib/ndpi_main.c
+++ b/src/lib/ndpi_main.c
@@ -6546,7 +6546,7 @@ ndpi_l4_proto_info ndpi_get_l4_proto_info(struct ndpi_detection_module_struct *n
/* ******************************************************************** */
-ndpi_ptree_t* ndpi_ptree_create() {
+ndpi_ptree_t* ndpi_ptree_create(void) {
ndpi_ptree_t *tree = (ndpi_ptree_t*) ndpi_malloc(sizeof(ndpi_ptree_t));
if(tree) {