Fix memory leak in OggExtractor Test: added a temporal log and run poc Bug: 63581671 Change-Id: I436a08e54d5e831f9fbdb33c26d15397ce1fbeba (cherry picked from commit 63079e7c8e12cda4eb124fbe565213d30b9ea34c)
diff --git a/media/libstagefright/OggExtractor.cpp b/media/libstagefright/OggExtractor.cpp index f953874..e058462 100644 --- a/media/libstagefright/OggExtractor.cpp +++ b/media/libstagefright/OggExtractor.cpp
@@ -575,6 +575,10 @@ } // First two pages are header pages. if (err == ERROR_END_OF_STREAM || mCurrentPage.mPageNo > 2) { + if (mBuf != NULL) { + mBuf->release(); + mBuf = NULL; + } break; } curGranulePosition = mCurrentPage.mGranulePosition;