loader: g_realloc(p, 0) frees and returns NULL, simplify
authorMarkus Armbruster <armbru@redhat.com>
Wed, 20 Aug 2014 18:38:11 +0000 (20:38 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 29 Sep 2014 16:44:04 +0000 (19:44 +0300)
commit8ce3c44c925982d834a8200ee0c9c00a7e9db20e
treed222de64d89b7497571cf154bac482b0b12cef91
parented9114356b587b362f5ed10e75366a4f07ed32af
loader: g_realloc(p, 0) frees and returns NULL, simplify

Once upon a time, it was decided that qemu_realloc(ptr, 0) should
abort.  Switching to glib retired that bright idea.  A bit of code
that was added to cope with it (commit 3e372cf) is still around.  Bury
it.

See also commit 6528499.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/elf_ops.h