* memory leak in case of Kernel module @ 2010-02-26 10:44 naveen yadav 2010-02-26 12:16 ` Dan Carpenter 0 siblings, 1 reply; 2+ messages in thread From: naveen yadav @ 2010-02-26 10:44 UTC (permalink / raw) To: linux-kernel 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: memory leak in case of Kernel module 2010-02-26 10:44 memory leak in case of Kernel module naveen yadav @ 2010-02-26 12:16 ` Dan Carpenter 0 siblings, 0 replies; 2+ messages in thread From: Dan Carpenter @ 2010-02-26 12:16 UTC (permalink / raw) To: naveen yadav; +Cc: linux-kernel On Fri, Feb 26, 2010 at 04:14:22PM +0530, naveen yadav wrote: > 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 > > Regards > Naveen > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-26 12:17 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-02-26 10:44 memory leak in case of Kernel module naveen yadav 2010-02-26 12:16 ` Dan Carpenter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox