diff options
author | Rick McNeal <rick.mcneal@nexenta.com> | 2017-10-11 12:19:08 -0700 |
---|---|---|
committer | Patrick Mooney <pmooney@oxide.computer> | 2022-09-29 19:00:47 +0000 |
commit | 17c4dadf772c2bfb28130f501dc6e1f46f8b1250 (patch) | |
tree | a285318b9ce24e9f9aa0d25d848f724272459027 | |
parent | 609febc9a48c79a089214cb5d882759a72a38513 (diff) | |
download | illumos-joyent-17c4dadf772c2bfb28130f501dc6e1f46f8b1250.tar.gz |
15020 HBA_LoadLibrary needs to close config file when done
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Jean McCormack <jean.mccormack@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
Reviewed by: Marco van Wieringen <mvw@planets.elm.net>
Approved by: Patrick Mooney <pmooney@pfmooney.com>
-rw-r--r-- | usr/src/lib/smhba/common/SMHBAAPILIB.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/src/lib/smhba/common/SMHBAAPILIB.c b/usr/src/lib/smhba/common/SMHBAAPILIB.c index 50f8e71c7f..86bb63f43c 100644 --- a/usr/src/lib/smhba/common/SMHBAAPILIB.c +++ b/usr/src/lib/smhba/common/SMHBAAPILIB.c @@ -946,6 +946,7 @@ HBA_LoadLibrary() if (lib_infop == NULL) { (void) fprintf(stderr, "HBA_LoadLibrary: out of memeory\n"); RELEASE_MUTEX(&_hbaapi_LL_mutex); + fclose(hbaconf); return (HBA_STATUS_ERROR); } lib_infop->status = HBA_LIBRARY_NOT_LOADED; @@ -1085,6 +1086,7 @@ HBA_LoadLibrary() /* successfully loaded library */ lib_infop->status = HBA_LIBRARY_LOADED; } + fclose(hbaconf); #endif /* WIN32 or UNIX */ #ifdef POSIX_THREADS /* |