VirtualBox

Ignore:
Timestamp:
Jul 8, 2014 3:15:51 AM (10 years ago)
Author:
vboxsync
Message:

asn1-generator: RTASN1TMPL_MEMBER_DYN* was leaking memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asn1-generator-pass.h

    r51858 r51919  
    10741074        default: break
    10751075# define RTASN1TMPL_MEMBER_DYN_COMMON(a_UnionNm, a_PtrName, a_Type, a_Api, a_Allocation, a_enmMembNm, a_enmValue, a_IfStmt) \
    1076         case a_enmValue: RT_CONCAT(a_Api,_Delete)(pThis->a_UnionNm.a_PtrName); break
     1076        case a_enmValue: \
     1077            RT_CONCAT(a_Api,_Delete)(pThis->a_UnionNm.a_PtrName); \
     1078            RTAsn1MemFree(&pThis->Allocation, pThis->a_UnionNm.a_PtrName); \
     1079            pThis->a_UnionNm.a_PtrName = NULL; \
     1080            break
    10771081# define RTASN1TMPL_MEMBER_DYN_END(a_enmType, a_enmMembNm, a_Allocation) \
    10781082    }
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