mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix double free bug for RTP
This commit is contained in:
parent
ce36a970ff
commit
b1df04cb09
3 changed files with 3 additions and 12 deletions
|
|
@ -297,13 +297,6 @@ SrsRtpRawNALUs::~SrsRtpRawNALUs()
|
|||
srs_freep(p);
|
||||
}
|
||||
}
|
||||
if (true) {
|
||||
int nn_nalus = (int)extra_nalus.size();
|
||||
for (int i = 0; i < nn_nalus; i++) {
|
||||
SrsSample* p = extra_nalus[i];
|
||||
srs_freep(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void SrsRtpRawNALUs::push_back(SrsSample* sample)
|
||||
|
|
@ -356,7 +349,6 @@ srs_error_t SrsRtpRawNALUs::read_samples(vector<SrsSample*>& samples, int packet
|
|||
srs_assert(nn > 0);
|
||||
|
||||
SrsSample* sample = new SrsSample();
|
||||
extra_nalus.push_back(sample);
|
||||
samples.push_back(sample);
|
||||
|
||||
sample->bytes = p->bytes + pos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue