summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorLeon Alrae2015-07-14 12:08:15 +0200
committerLeon Alrae2015-07-15 15:07:25 +0200
commit26e7e982b267e71d40cd20e9e234fedef6770a90 (patch)
treefad74f2bf3bebc3365ebdfb7108c0c3d4582d2fa /linux-user
parenttarget-mips: fix logically dead code reported by Coverity (diff)
downloadqemu-26e7e982b267e71d40cd20e9e234fedef6770a90.tar.gz
qemu-26e7e982b267e71d40cd20e9e234fedef6770a90.tar.xz
qemu-26e7e982b267e71d40cd20e9e234fedef6770a90.zip
target-mips: fix resource leak reported by Coverity
UHI assert and link operations call lock_user_string() twice to obtain two strings pointed by gpr[4] and gpr[5]. If the second lock_user_string() fails, then the first one won't get freed. Fix this by introducing another macro responsible for obtaining two strings and handling allocation failure. Signed-off-by: Leon Alrae <leon.alrae@imgtec.com> Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions