VirtualBox

Changeset 52217 in vbox


Ignore:
Timestamp:
Jul 28, 2014 7:12:48 PM (10 years ago)
Author:
vboxsync
Message:

Runtime/http: fixed potential invalid RTMemFree() on error

File:
1 edited

Legend:

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

    r51707 r52217  
    323323                    else
    324324                        rc = VERR_HTTP_CACERT_WRONG_FORMAT;
     325
     326                    if (RT_FAILURE(rc))
     327                        RTMemFree(*pabSha1);
    325328                }
    326329                else
     
    338341        rc = VERR_INTERNAL_ERROR;
    339342
    340     if (RT_FAILURE(rc))
    341     {
    342         RTMemFree(*pabSha512);
    343         RTMemFree(*pabSha1);
    344     }
    345 
    346343    return rc;
    347344}
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