emulator: fix potential resource leak
authorTedd Ho-Jeong An <tedd.an@intel.com>
Tue, 16 Nov 2021 06:49:49 +0000 (22:49 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:38 +0000 (19:08 +0530)
commitf1bb0cb8560aed752d4037915266c989c346043c
treebb91bfb00eb743f40d6d2f054e1351ffbed8bac7
parent33d847eed0385cbfc7518bcef3f7dd0d2814b7a5
emulator: fix potential resource leak

This patch releases the allocated fd to prevent the potential resource
leak. This was reported by the Coverity scan.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
emulator/vhci.c