Fixed memory leak in cSatipSectionFilter.

This commit is contained in:
Alexander Pipelka 2017-09-23 19:53:56 +02:00
parent bf5b058725
commit 1de063ca38
1 changed files with 5 additions and 2 deletions

View File

@ -102,8 +102,11 @@ int cSatipSectionFilter::Filter(void)
if (doneqM && !neq) if (doneqM && !neq)
return 0; return 0;
if (ringBufferM && (secLenM > 0)) if (ringBufferM && (secLenM > 0)) {
ringBufferM->Put(new cFrame(secBufM, secLenM)); cFrame* section = new cFrame(secBufM, secLenM);
if (!ringBufferM->Put(section))
DELETE_POINTER(section);
}
} }
return 0; return 0;
} }