VirtualBox

Changeset 13341 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Oct 16, 2008 2:17:52 PM (16 years ago)
Author:
vboxsync
Message:

Solaris/VBoxNetFlt: Fixed memory leak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c

    r13137 r13341  
    230230    DEVICE_NAME,
    231231    &g_VBoxNetFltSolarisStreamTab,
    232     D_NEW | D_MP | D_MTPERMOD
     232    D_NEW | D_MP | D_MTQPAIR
    233233};
    234234
     
    28812881                LogFlow((DEVICE_NAME ":vboxNetFltPortOsXmit INTNETTRUNKDIR_HOST\n"));
    28822882
    2883                 mblk_t *pMsg = vboxNetFltSolarisMBlkFromSG(pThis, pSG, fDst);
    2884                 if (RT_LIKELY(pMsg))
    2885                 {
    2886                     pMsg->b_rptr += sizeof(RTNETETHERHDR);
    2887                     queue_t *pIpReadQueue = pIpStream->pReadQueue;
    2888                     putnext(pIpReadQueue, pMsg);
    2889                 }
    2890                 else
    2891                 {
    2892                     LogRel((DEVICE_NAME ":vboxNetFltSolarisRawToUnitData failed!\n"));
    2893                     freemsg(pMsg);
    2894                     rc = VERR_NO_MEMORY;
    2895                 }
     2883                pMsg->b_rptr += sizeof(RTNETETHERHDR);
     2884                queue_t *pIpReadQueue = pIpStream->pReadQueue;
     2885                putnext(pIpReadQueue, pMsg);
    28962886            }
    28972887        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette