From f1dd8bc8c5254f2910c609e7aa56869c55bebe00 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 7 Jul 2020 17:32:26 +0200 Subject: Memory allocation fixes --- example/ndpiReader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'example') diff --git a/example/ndpiReader.c b/example/ndpiReader.c index a3e35bd4f..11ec175b0 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -3136,7 +3136,7 @@ static void binUnitTest() { srand(time(NULL)); - assert((bins = (struct ndpi_bin*)malloc(sizeof(struct ndpi_bin)*num_bins)) != NULL); + assert((bins = (struct ndpi_bin*)ndpi_malloc(sizeof(struct ndpi_bin)*num_bins)) != NULL); for(i=0; i