File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 35
35
dynamicOdm::dynamicOdm () {
36
36
const char * libodmname = " /usr/lib/libodm.a(shr_64.o)" ;
37
37
char ebuf[512 ];
38
- void * _libhandle = os::dll_load (libodmname, ebuf, sizeof (ebuf));
38
+ _libhandle = os::dll_load (libodmname, ebuf, sizeof (ebuf));
39
39
40
40
if (!_libhandle) {
41
41
trcVerbose (" Cannot load %s (error %s)" , libodmname, ebuf);
@@ -48,14 +48,14 @@ dynamicOdm::dynamicOdm() {
48
48
_odm_terminate = (fun_odm_terminate )dlsym (_libhandle, " odm_terminate" );
49
49
if (!_odm_initialize || !_odm_set_path || !_odm_mount_class || !_odm_get_obj || !_odm_terminate) {
50
50
trcVerbose (" Couldn't find all required odm symbols from %s" , libodmname);
51
- dlclose (_libhandle);
51
+ os::dll_unload (_libhandle);
52
52
_libhandle = nullptr ;
53
53
return ;
54
54
}
55
55
}
56
56
57
57
dynamicOdm::~dynamicOdm () {
58
- if (_libhandle) { dlclose (_libhandle); }
58
+ if (_libhandle) { os::dll_unload (_libhandle); }
59
59
}
60
60
61
61
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ bool libperfstat::init() {
114
114
void libperfstat::cleanup () {
115
115
116
116
if (g_libhandle) {
117
- dlclose (g_libhandle);
117
+ os::dll_unload (g_libhandle);
118
118
g_libhandle = nullptr ;
119
119
}
120
120
You can’t perform that action at this time.
0 commit comments