diff options
author | Leon Alrae <leon.alrae@imgtec.com> | 2015-07-14 11:08:15 +0100 |
---|---|---|
committer | Leon Alrae <leon.alrae@imgtec.com> | 2015-07-15 14:07:25 +0100 |
commit | 26e7e982b267e71d40cd20e9e234fedef6770a90 (patch) | |
tree | fad74f2bf3bebc3365ebdfb7108c0c3d4582d2fa /linux-user | |
parent | 47ada0ad3431b39863918dc80386634693d317b5 (diff) |
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