Print this page
NEX-14979 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>
        
*** 1083,1092 ****
--- 1083,1093 ----
                  continue;
          }
          /* successfully loaded library */
          lib_infop->status = HBA_LIBRARY_LOADED;
          }
+         fclose(hbaconf);
  #endif /* WIN32 or UNIX */
  #ifdef POSIX_THREADS
          /*
           * The _hbaapi_LL_mutex is already grabbed to proctect the caller of
           * HBA_FreeLibrary() during loading.