Fix resource leak for logOutput when exception occurs before close

this is detected by coverity

Bug: 323977000
Test: Manual

Change-Id: I83b397362aa98b804a33047d9b70f6212b7e743f
Signed-off-by: wangshouchun <wangshouchun@xiaomi.com>
1 file changed