Skip to contentSkip to conversation

memory leak in case of Kernel module

DISCUSSION naveen yadav 2 participants 2 messages Feb 26, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,

I need small clarification, If I have a kernel module and in init I create some memory using vmalloc. and i do not free it. I exit from the module.

what happen to this allocated memory. Will kernel handle it and do free.

Regards
Naveen

#1 lore raw
Quoted 8 lines · naveen yadav

Hi all,

I need small clarification, If I have a kernel module and in init I create some memory using vmalloc. and i do not free it. I exit from the module.

what happen to this allocated memory. Will kernel handle it and do free.

No. You need to free your memory explicitly.

regards,
dan carpenter

Quoted 8 lines

Regards
Naveen
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/