Module: sems
Branch: 1.5
Commit: f8eee270f5a8565cadf0c5975831e5ab545df788
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=f8eee270f5a8565cadf0c5975831e5ab545df788

Author: Juha Heinanen <[email protected]>
Committer: Juha Heinanen <[email protected]>
Date:   Thu Mar 14 03:35:11 2013 +0200

core: reverted commit ea1dc3598f053f725983ad9b8008a43b8a30fcf4 in 1.5 branch
- "hot fix for possible infinite loop in PacketMem::newPacket()" not
  needed in 1.5 and makes AmRtpStream.cpp to not compile

---

 core/AmRtpStream.cpp |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp
index 61427a8..34c229e 100644
--- a/core/AmRtpStream.cpp
+++ b/core/AmRtpStream.cpp
@@ -1021,15 +1021,6 @@ inline AmRtpPacket* PacketMem::newPacket() {
 inline void PacketMem::freePacket(AmRtpPacket* p) {
   if (!p)  return;
 
-  int idx = p-packets;
-  assert(idx >= 0);
-  assert(idx < MAX_PACKETS);
-
-  if(!used[idx]) {
-    ERROR("freePacket() double free: n_used = %d, idx = %d",n_used,idx);
-    return;
-  }
-
   used[p-packets] = false;
 }
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to