linux-user: fix file descriptor leaks
commit680dfde91981516942ec557ef1c27753db24cbe8
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Fri, 22 Aug 2014 08:23:51 +0000 (22 16:23 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 24 Aug 2014 09:18:28 +0000 (24 13:18 +0400)
tree49a6bfa6bfae42db9d629fc5f500a114f566b7c4
parentbcc55f327c571295193880110c048b463bce6677
linux-user: fix file descriptor leaks

Handle variable "fd_orig" going out of scope leaks the handle.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
linux-user/syscall.c