Re: [Qemu-devel] [PATCH] cris-dis: Clean memory allocation

2012-01-10 Thread Edgar E. Iglesias
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

[Qemu-devel] [PATCH] cris-dis: Clean memory allocation

2012-01-09 Thread Stefan Weil
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 u