Re: kfree question

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

 



Danilo Reinhardt (Danilo.Reinhardt@de.bosch.com) wrote:
> Hi,
> 
> does i need to call kfree to free memory allocated with kmalloc. I ask
> because, at the firewire subsystem (hosts.c) there is a call to kmalloc
> inside hpsb_alloc_host but i did not fount a everywhere?
> 
> Bye Dan

Like in C program, when you have alocated memory with (k)malloc, when
you want to release it, you (k)freed it ;-)

It is the same here. Perhaps in the code you read, the memory allocated
is used again.

If I say mistake, please correct me... I am here to learn.
-- 
Amicalement

Christophe 

* GNU/Linux & UNIX developer and network administrator
* Membre RotomaLUG (http://www.rotomalug.org)
* Registered User #271267
* Email: c.lucas@ifrance.com
* Web Site: http://odie.mcom.fr/~clucas/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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