From: Amit Choudhary <amit2030@yahoo.com>
To: Jarek Poplawski <jarkao2@o2.pl>, Amit Choudhary <amit2030@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: potential mem leak when system is low on memory
Date: Tue, 17 Oct 2006 11:58:28 -0700 (PDT) [thread overview]
Message-ID: <20061017185828.82631.qmail@web55615.mail.re4.yahoo.com> (raw)
In-Reply-To: <20061017081020.GB1742@ff.dom.local>
> > func()
> > {
> > for (i = 0; i < LENGTH; i++) {
> > var1[i] = kmalloc(size);
> > if (!var1[i])
> > return -ENOMEM;
> >
> > /* mem leak as var1[0] to var1[i - 1] is not freed */
> >
> > }
> > }
> >
> > So, already the system is running low on memory and on top of it there
> > are leaks.
>
> So you've found elementary programming bugs and it would
> be nice to point this places.
>
As of now, when I come across such a leak, I fix it. But if I am unable to do so, I will
definitely send out a mail.
Regards,
Amit Choudhary
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
prev parent reply other threads:[~2006-10-17 18:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-16 22:52 Amit Choudhary
2006-10-17 8:10 ` Jarek Poplawski
2006-10-17 18:58 ` Amit Choudhary [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=20061017185828.82631.qmail@web55615.mail.re4.yahoo.com \
--to=amit2030@yahoo.com \
--cc=amit2030@gmail.com \
--cc=jarkao2@o2.pl \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®