From: Wolfgang Denk Date: Mon, 19 Oct 2009 14:33:59 +0200 Subject: [U-Boot] [u-boot] [PATCH] [2/2] mxc_fec: put freed pointers to NULL to avoid problems with further free() calls. In-Reply-To: References: Message-ID: <20091019123359.A46BE182FC428@nyx.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear javier Martin, In message you wrote: > If a free() call is used on an already freed pointer we run into > stability problems. Is this actually the case anywhere in the code? If so, that code should be fixed, as thisis obviously a bug then. I dislike workarounds like these as they just hush up design and/or implementation issues int he code. lease rather fix the real problems instead. Thanks. > Tested on i.MX27 Litekit board with eldk-2.0 toolchain. ELDK 2.0? Wow. I did not think this was still in use anywhere around. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Most people would like to be delivered from temptation but would like it to keep in touch." - Robert Orben