Changeset 73097 in vbox for trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
- Timestamp:
- Jul 12, 2018 9:06:33 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/timer-r0drv-linux.c
r70458 r73097 462 462 * Finally, free the resources. 463 463 */ 464 RTMemFreeEx(pTimer, RT_ OFFSETOF(RTTIMER, aSubTimers[pTimer->cCpus]));464 RTMemFreeEx(pTimer, RT_UOFFSETOF_DYN(RTTIMER, aSubTimers[pTimer->cCpus])); 465 465 if (hSpinlock != NIL_RTSPINLOCK) 466 466 RTSpinlockDestroy(hSpinlock); … … 1551 1551 #endif 1552 1552 1553 rc = RTMemAllocEx(RT_ OFFSETOF(RTTIMER, aSubTimers[cCpus]), 0,1553 rc = RTMemAllocEx(RT_UOFFSETOF_DYN(RTTIMER, aSubTimers[cCpus]), 0, 1554 1554 RTMEMALLOCEX_FLAGS_ZEROED | RTMEMALLOCEX_FLAGS_ANY_CTX_FREE, (void **)&pTimer); 1555 1555 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.