utils/misc.c: prevent file staying opened when function leaving
The utils function may be called in any situation, such as in daemon. We
should guarantee that all the resource got from this function released
normally.
Signed-off-by:
yuchenlin <npes87184@gmail.com>
Showing
Please
register
or
sign in
to comment