From: Vladimir Didenko <vladimir.didenko@gmail.com>
To: dash@vger.kernel.org
Subject: Declaring local variables inside while loop leads to memory leak
Date: Tue, 26 Jul 2016 13:35:53 +0300 [thread overview]
Message-ID: <CAHRK1yP1GyUJEPNLSicUatRJPOJg=Oeac1daJkuJs6eDD+xi9Q@mail.gmail.com> (raw)
Hi.
I found that declaring local variables inside while loop leads to
memory leak. Code sample:
test()
{
while [ true ]; do
local a=
done
}
test
--
Regards,
Vladimir.
next reply other threads:[~2016-07-26 10:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-26 10:35 Vladimir Didenko [this message]
2016-07-26 21:35 ` Declaring local variables inside while loop leads to memory leak Jilles Tjoelker
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='CAHRK1yP1GyUJEPNLSicUatRJPOJg=Oeac1daJkuJs6eDD+xi9Q@mail.gmail.com' \
--to=vladimir.didenko@gmail.com \
--cc=dash@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).