From: Dan Carpenter <error27@gmail.com>
To: naveen yadav <yad.naveen@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: memory leak in case of Kernel module
Date: Fri, 26 Feb 2010 15:16:47 +0300 [thread overview]
Message-ID: <20100226121647.GD8417@bicker> (raw)
In-Reply-To: <9bde694e1002260244u25cfa332l82c488702e4b9900@mail.gmail.com>
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/
prev parent reply other threads:[~2010-02-26 12:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 10:44 memory leak in case of Kernel module naveen yadav
2010-02-26 12:16 ` Dan Carpenter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100226121647.GD8417@bicker \
--to=error27@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=yad.naveen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox