Received: from eggs.gnu.org ([140.186.70.92]:36574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb83l-0007le-Qr for qemu-devel@nongnu.org; Thu, 15 Dec 2011 04:57:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rb83e-0007dT-It for qemu-devel@nongnu.org; Thu, 15 Dec 2011 04:57:05 -0500 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:59200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rb83d-0007cz-RZ for qemu-devel@nongnu.org; Thu, 15 Dec 2011 04:56:58 -0500 Date: Thu, 15 Dec 2011 17:56:53 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7?= Message-ID: <20111215095653.GA62743@cs.nctu.edu.tw> References: <4EE9AB5A.4080306@linux.vnet.ibm.com> <20111215082828.GA33201@cs.nctu.edu.tw> <20111215093637.GA387@stefanha-thinkpad.localdomain> <4EE9C260.20305@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4EE9C260.20305@linux.vnet.ibm.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] some questions about g_malloc in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zhi Hui Li Cc: Stefan Hajnoczi , QEMU-devel > Maybe there is insufficient memory, the return is error, > Do we need to check the return ? It'll abort if there is not enough memory. http://mail.gnome.org/archives/gtk-app-devel-list/2003-September/msg002= 60.html Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj