linux-user: Fix possible realloc memory leak
authorStefan Weil <weil@mail.berlios.de>
Mon, 17 Jan 2011 20:36:06 +0000 (21:36 +0100)
committerRiku Voipio <riku.voipio@nokia.com>
Wed, 9 Feb 2011 08:33:53 +0000 (10:33 +0200)
commit8d79de6e42947a4a11ad7c7bb87e8f745a4f8321
treecbaf57f93cce4e3f7304f44acb03c8ba77324743
parent6672b0b22a8ab92ad3a07889c2220a7568a3da30
linux-user: Fix possible realloc memory leak

Extract from "man realloc":
"If realloc() fails the original block is left untouched;
it is not freed or moved."

Fix a possible memory leak (reported by cppcheck).

Cc: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
linux-user/elfload.c