Received: from eggs.gnu.org ([140.186.70.92]:37182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkXEL-0005WG-1B for qemu-devel@nongnu.org; Tue, 10 Jan 2012 03:38:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkXEJ-00067Y-H7 for qemu-devel@nongnu.org; Tue, 10 Jan 2012 03:38:53 -0500 Received: from mail-lpp01m010-f45.google.com ([209.85.215.45]:40724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkXEJ-00067O-B4 for qemu-devel@nongnu.org; Tue, 10 Jan 2012 03:38:51 -0500 Received: by lagy4 with SMTP id y4so1925671lag.4 for ; Tue, 10 Jan 2012 00:38:49 -0800 (PST) Date: Tue, 10 Jan 2012 09:38:47 +0100 From: "Edgar E. Iglesias" Message-ID: <20120110083847.GB7565@edde.se.axis.com> References: <1326133422-1106-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1326133422-1106-1-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH] cris-dis: Clean memory allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-devel@nongnu.org On Mon, Jan 09, 2012 at 07:23:42PM +0100, Stefan Weil wrote: > The old code used sizeof(const struct cris_opcode **) where it should > have used sizeof(const struct cris_opcode *). As both sizes give the > same value, the resulting binary was ok, but static code analyzers > like coverity and clang complained. > > This is fixed here, and the code is also simplified by using g_new0. > > Signed-off-by: Stefan Weil Applied, thanks Stefan. Cheers