Fix memory leak in ndpiReader.

Changes in library for strict function prototype.

Signed-off-by: Ravi Kerur <ravi.kerur@viasat.com>
This commit is contained in:
Ravi Kerur
2019-10-19 08:59:48 -07:00
parent 604abaf81c
commit 7cb3cb7353
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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) {