[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: double free or corruption - it works on older machine
From: |
Paul Pluzhnikov |
Subject: |
Re: double free or corruption - it works on older machine |
Date: |
Wed, 16 Aug 2006 22:34:24 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
Ulrich Eckhardt <doomster@knuut.de> writes:
> Okay, here's your problem: you are using new[] to allocate storage and
> using free() to release it.
Missed that.
This is a real bug, but it doesn't explain the observed double-free:
the 'new char[]' simply turns around and calls malloc() on most C++
implementations, so this particular bug will never manifest itself
in a crash (on such an implementation).
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.