Fix memory leak in OggExtractor

Test: added a temporal log and run poc
Bug: 63581671
Change-Id: I436a08e54d5e831f9fbdb33c26d15397ce1fbeba
(cherry picked from commit 63079e7c8e12cda4eb124fbe565213d30b9ea34c)

status_t MyOggExtractor::init() {
    mMeta = new MetaData;
    mMeta->setCString(kKeyMIMEType, mMimeType);

 status_t err;
 MediaBuffer *packet;
 for (size_t i = 0; i < mNumHeaders; ++i) {
 if ((err = _readNextPacket(&packet, /* calcVorbisTimestamp = */ false)) != OK) {
 return err;
 }
        ALOGV("read packet of size %zu\n", packet->range_length());
        err = verifyHeader(packet, /* type = */ i * 2 + 1);
        packet->release();
        packet = NULL;
 if (err != OK) {
 return err;
 }
 }

    mFirstDataOffset = mOffset + mCurrentPageSize;

 off64_t size;
 uint64_t lastGranulePosition;
 if (!(mSource->flags() & DataSource::kIsCachingDataSource)
 && mSource->getSize(&size) == OK
 && findPrevGranulePosition(size, &lastGranulePosition) == OK) {

 int64_t durationUs = getTimeUsOfGranule(lastGranulePosition);

        mMeta->setInt64(kKeyDuration, durationUs);

        buildTableOfContents();
 }

 return OK;
}

status_t MyOggExtractor::init() {
    mMeta = new MetaData;
    mMeta->setCString(kKeyMIMEType, mMimeType);

 status_t err;
 MediaBuffer *packet;
 for (size_t i = 0; i < mNumHeaders; ++i) {
 if ((err = _readNextPacket(&packet, /* calcVorbisTimestamp = */ false)) != OK) {
 return err;
 }
        ALOGV("read packet of size %zu\n", packet->range_length());
        err = verifyHeader(packet, /* type = */ i * 2 + 1);
        packet->release();
        packet = NULL;
 if (err != OK) {
 return err;
 }
 }

    mFirstDataOffset = mOffset + mCurrentPageSize;

 off64_t size;
 uint64_t lastGranulePosition;
 if (!(mSource->flags() & DataSource::kIsCachingDataSource)
 && mSource->getSize(&size) == OK
 && findPrevGranulePosition(size, &lastGranulePosition) == OK) {

 int64_t durationUs = getTimeUsOfGranule(lastGranulePosition);

        mMeta->setInt64(kKeyDuration, durationUs);

        buildTableOfContents();
 }

 return OK;
}
