Changeset 37164 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- May 20, 2011 12:02:14 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFltBow-solaris.c
r36956 r37164 507 507 } 508 508 } 509 DB_TYPE(pMsg) = M_DATA;510 509 return pMsg; 511 510 } … … 980 979 LOCAL PVBOXNETFLTVNIC vboxNetFltSolarisAllocVNIC(void) 981 980 { 982 PVBOXNETFLTVNIC pVNIC = RTMemAlloc (sizeof(VBOXNETFLTVNIC));981 PVBOXNETFLTVNIC pVNIC = RTMemAllocZ(sizeof(VBOXNETFLTVNIC)); 983 982 if (RT_UNLIKELY(!pVNIC)) 984 983 return NULL; … … 1005 1004 LOCAL inline void vboxNetFltSolarisFreeVNIC(PVBOXNETFLTVNIC pVNIC) 1006 1005 { 1007 if (pVNIC) 1008 RTMemFree(pVNIC); 1006 RTMemFree(pVNIC); 1009 1007 } 1010 1008 … … 1018 1016 LOCAL void vboxNetFltSolarisDestroyVNIC(PVBOXNETFLTVNIC pVNIC) 1019 1017 { 1018 AssertPtrReturnVoid(pVNIC); 1019 AssertMsgReturnVoid(pVNIC->u32Magic == VBOXNETFLTVNIC_MAGIC, ("pVNIC=%p u32Magic=%#x\n", pVNIC, pVNIC->u32Magic)); 1020 1020 if (pVNIC) 1021 1021 {
Note:
See TracChangeset
for help on using the changeset viewer.