IBM Support

PM07160: Memory leaks / wrong allocation in framework

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The functions OMDestructiveString2X as defined in the OXF source
    files Share\LangCpp\omco\om2str.cpp and Share\LangCpp\omco\om2s
    tr.h all contain memory leaks. The char * argument (allocated as
     new char[n]) is deallocated with the delete c  instructions ins
    tead of  delete [] c.
    Beside the memory leak, this will randomly lead to (heap) memory
     corruption.
    
    Same problem in:
    
    - Share\LangCpp\aom\aombrk.cpp (several  delete theData  are wro
    ng) S:\racine\opt\RhapsodySpecific\Share\LangCpp\tom\tomattr.cpp
    :
    TOMAttributeCItem destructor is wrong.
    
    S:\racine\opt\RhapsodySpecific\Share\LangCpp\tom\tomattr.h:
    
    TOMAttributeItem destructor is wrong.
    
    - Share\LangCpp\omcom\omsdata.h: safeGetChar returns a static ch
    ar *
    when there is a problem in the value!!!
    
    As TOMAttributeItem destructor (see tomattr.h) deletes a value o
    btained from safeGetChar (see tomattr.cpp, makeAttributeItem), t
    his will lead to weird execution problems.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Memory leaks / wrong allocation in framework
    

Problem conclusion

  • Fixed in 7.6
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM07160

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-02-09

  • Closed date

    2011-06-23

  • Last modified date

    2011-06-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R751 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.5.1","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
06 January 2022