VirtualBox

Changeset 69520 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 30, 2017 10:46:51 AM (7 years ago)
Author:
vboxsync
Message:

Runtime/json: Plug small memory leak in out of memory error condition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/json.cpp

    r69111 r69520  
    946946                    if (RT_UNLIKELY(!papValuesNew || !papszNamesNew))
    947947                    {
     948                        if (papValuesNew)
     949                            RTMemFree(papValuesNew);
     950                        if (papszNamesNew)
     951                            RTMemFree(papszNamesNew);
    948952                        rc = VERR_NO_MEMORY;
    949953                        break;
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