|
From: | Markus Armbruster |
Subject: | Re: [Qemu-devel] [PATCH] linux-user: Fix possible realloc memory leak |
Date: | Tue, 18 Jan 2011 09:26:08 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Stefan Weil <address@hidden> writes: > 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 <address@hidden> > Signed-off-by: Stefan Weil <address@hidden> Sidestep the problem via qemu_realloc() instead?
[Prev in Thread] | Current Thread | [Next in Thread] |