From kde-core-devel Mon Aug 10 10:51:52 2009 From: Christoph Bartoschek Date: Mon, 10 Aug 2009 10:51:52 +0000 To: kde-core-devel Subject: Re: kio_sftp rewrite Message-Id: <200908101251.52689.bartoschek () gmx ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=124990139828614 Am Montag 10 August 2009 schrieb Albert Astals Cid: > > Asunto: Re: kio_sftp rewrite > > > > -0400, Ben Boeckel wrote: > > > free() [....] should not crash on NULL > > > > wrong > > Not wrong: > [1] Linux: If ptr is NULL, no operation is performed. > [2] SCO: If ptr is a null pointer, no action occurs > [3] Microsoft: If memblock is NULL, the pointer is ignored and free > immediately returns. [4] FreeBSD: If ptr is NULL, no action occurs. > It's even required by POSIX: http://www.opengroup.org/onlinepubs/7990989775/xsh/free.html Christoph