]> 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)
committerStefan Hajnoczi <stefanha@gmail.com>
Sun, 23 Sep 2012 06:35:29 +0000 (07:35 +0100)
commitad11ad77748bdd8016370db210751683dc038dd6
treea4b9696072345e03e7a4ad4c750721b8ed1008a9
parent144b97c26cdef7fecd62dae2db6ce312cd493751
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>
linux-user/syscall.c