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