Hi i have code like below , just added logic view not full syntax
static void* average()
void *data = NULL;
globalVar = getAverage();
data = ((void *)&globalVar);
No there is no memory leak here. Memory leaks only arise from unbalanced
free calls, and there is nothing like that going on here.
getAverage() doesn't itself leak).