VirtualBox

Changeset 1095 in kBuild for trunk/src/kObjCache


Ignore:
Timestamp:
Sep 15, 2007 11:47:55 PM (17 years ago)
Author:
bird
Message:

Fixed bug in kOCSumDeleteChain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kObjCache/kObjCache.c

    r1093 r1095  
    835835static void kOCSumDeleteChain(PKOCSUM pSumHead)
    836836{
    837     void *pv;
    838     while ((pv = pSumHead->pNext))
    839     {
    840         pSumHead = pSumHead->pNext;
    841         free(pv);
     837    PKOCSUM pSum = pSumHead->pNext;
     838    while (pSum)
     839    {
     840        void *pvFree = pSum;
     841        pSum = pSum->pNext;
     842        free(pvFree);
    842843    }
    843844    memset(pSumHead, 0, sizeof(*pSumHead));
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