Re: Question on Memory Leaks in Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Wed, 23 Jan 2008 18:31:02 +0530,
"Manish Katiyar" <mkatiyar@xxxxxxxxx> a écrit :

> So If i do a kzalloc() in my module and then unload my module without
> freeing it, it will be a memory leak...........Am i right ?? .. 

Right. This memory will be lost.

> Or the kernel is intelligent enough to check and free those memory
> buffers during unload of the module ?

No, there isn't such a mechanism in the Linux kernel.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1500 pages!)

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux