1
0
Fork 0
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:
winlin 2020-04-19 09:32:09 +08:00
parent ce36a970ff
commit b1df04cb09
3 changed files with 3 additions and 12 deletions

View file

@ -478,6 +478,7 @@ SrsRtcPackets::SrsRtcPackets(int nn_cache_max)
cursor = 0;
nn_cache = nn_cache_max;
// TODO: FIXME: We should allocate a smaller cache, and increase it when exhausted.
cache = new SrsRtpPacket2[nn_cache];
}