]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Remove redundant null check and replace free by g_free
authorStefan Weil <sw@weilnetz.de>
Tue, 4 Sep 2012 20:14:19 +0000 (22:14 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:20 +0000 (21:44 -0500)
commit61dea8e914440d02720a929ad78178ed821f9946
tree66da3cf5cc6dd3cb338d4c35eeaf3680741ea602
parenta2aad5fdc49b540d8b41c0a54c7078d034a3cf75
linux-user: Remove redundant null check and replace free by g_free

Report from smatch:

linux-user/syscall.c:3632 do_ioctl_dm(220) info:
 redundant null check on big_buf calling free()

'big_buf' was allocated by g_malloc0, therefore free was also
replaced by g_free.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
(cherry picked from commit ad11ad77748bdd8016370db210751683dc038dd6)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
linux-user/syscall.c