if i have a function with a static local variable, that's dynamically allocated once:
int funct(void)
{
static char* buffer = NULL;
if (!buffer)
buffer = malloc(SIZESLOW);
}
If there's no explicit free call, and if the process is killed; does this constitute as a leak? When the process is killed, is the heap essentially freed? I guess I'm after an in depth explanation on what happens on a windows platform (i imagine unix would be in the same boat)
Start Free Trial