Re: delete_module and memory

Martin von Loewis (
Sat, 20 Dec 1997 10:18:34 +0100

> i want to create a temporary buffer the first time it's needed and
> have it automatically go away when the module gets unloaded. does
> delete_module automatically free kmalloced or other forms of memory?

Not automatically. However, cleanup_module gets called when the
module is removed, so you can check whether you allocated that memory
and release it if necessary.