VirtualBox

Changeset 102562 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
Dec 11, 2023 8:32:42 AM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160708
Message:

IPRT/http: Fixed a memory leak, updated docs. bugref:9437

File:
1 edited

Legend:

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

    r98103 r102562  
    210210
    211211
    212 /**
    213  * Destroys the headers associated with this list (w/o telling cURL about it).
    214  *
    215  * @param   hHdrLst       The HTTP header list instance.
    216  */
    217212RTR3DECL(void) RTHttpHeaderListDestroy(RTHTTPHEADERLIST hHdrLst)
    218213{
     
    221216
    222217    rtHttpHeaderListRemoveAll(pThis);
     218
     219    RTMemFree(hHdrLst);
     220    hHdrLst = NIL_RTHTTPHEADERLIST;
    223221}
    224222
Note: See TracChangeset for help on using the changeset viewer.

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