Opened 3 years ago

Closed 3 years ago

#1514 closed defect (fixed)

Potential memory leak for m_sdiSEIInFirstAU and m_maiSEIInFirstAU

Reported by: ksuehring Owned by:
Priority: minor Milestone: VTM-14.1
Component: VTM Version: VTM-14.0
Keywords: Cc: ksuehring, XiangLi, fbossen, jvet@…


In DecLib::xCheckPrefixSEIMessages() the variables are assigned

    m_sdiSEIInFirstAU = NULL;
    m_maiSEIInFirstAU = NULL;

and later

   m_sdiSEIInFirstAU = new SEIScalabilityDimensionInfo(*sdi);
   m_maiSEIInFirstAU = new SEIMultiviewAcquisitionInfo(*mai);

which initializes the variables to the SEI in the first AU of a CVS.

However when multiple CVS are included in the bitstream, the variables may be overwritten an the allocated memory will be lost.

Also there seems to be no delete when the program ends.

Change history (2)

comment:1 Changed 3 years ago by wangyang.cs

comment:2 Changed 3 years ago by ksuehring

  • Milestone set to VTM-14.1
  • Resolution set to fixed
  • Status changed from new to closed

Fixed as suggested

Note: See TracTickets for help on using tickets.