VirtualBox

Changeset 107719 in vbox for trunk


Ignore:
Timestamp:
Jan 13, 2025 6:33:43 PM (4 weeks ago)
Author:
vboxsync
Message:

src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp: Fixed warnings found by Parfait (unused assignment). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePropCache.cpp

    r106061 r107719  
    8484    {
    8585        pNode->pszName = RTStrDup(pszName);
    86         if (!pNode->pszName)
    87         {
    88             RTMemFree(pNode);
    89             return NULL;
    90         }
     86        AssertPtrReturnStmt(pNode->pszName, RTMemFree(pNode), NULL);
    9187        pNode->pszValue = NULL;
    9288        pNode->fFlags = 0;
     
    9793        {
    9894            RTListAppend(&pCache->NodeHead, &pNode->NodeSucc);
    99             rc = RTCritSectLeave(&pCache->CritSect);
    100         }
    101     }
    102     return pNode;
     95            RTCritSectLeave(&pCache->CritSect);
     96
     97            return pNode;
     98        }
     99
     100        RTStrFree(pNode->pszName);
     101        RTMemFree(pNode);
     102    }
     103
     104    return NULL;
    103105}
    104106
     
    428430
    429431            if (pNode->fFlags & VGSVCPROPCACHE_FLAGS_TEMPORARY)
    430                 rc = vgsvcPropCacheWritePropF(pCache->uClientID, pNode->pszName, pNode->fFlags, pNode->pszValueReset);
     432                vgsvcPropCacheWritePropF(pCache->uClientID, pNode->pszName, pNode->fFlags, pNode->pszValueReset);
    431433
    432434            AssertPtr(pNode->pszName);
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