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:
@@ -848,7 +848,7 @@ extern "C" {
|
||||
ndpi_serializer *serializer);
|
||||
|
||||
/* ptree (trie) API */
|
||||
ndpi_ptree_t* ndpi_ptree_create();
|
||||
ndpi_ptree_t* ndpi_ptree_create(void);
|
||||
int ndpi_ptree_insert(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, u_int8_t bits, uint user_data);
|
||||
int ndpi_ptree_match_addr(ndpi_ptree_t *tree, const ndpi_ip_addr_t *addr, uint *user_data);
|
||||
void ndpi_ptree_destroy(ndpi_ptree_t *tree);
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user