Re: [PATCH 1/2] cmd_clone: free dir and path buffers
- From
John Szakmeister <john@szakmeister.net>
- Date
- Mar 31, 2011, 14:45 UTC
- Message-ID
- <AANLkTi=XYv1WFbvHwqvrJDkssKC-zU91Vj4EPbZG6OK2@mail.gmail.com>
- In-Reply-To
- <1301581122-19947-1-git-send-email-cmn@elego.de>
On Thu, Mar 31, 2011 at 10:18 AM, Carlos Martín Nieto <cmn@elego.de> wrote:
> The variables dir and path are always allocated on the stack so it's > always safe to free them.
I think you mean "on the heap". :-)
-John