Opened 16 years ago

Closed 16 years ago

#684 closed defect (fixed)

Various transmit data buffer leaks when transmission fails immediately

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.0.1
Component: pjsip Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:


One of the scenario when transmission fails immediately is when memory allocation fails when allocating the contiguous buffer for the message. Another scenario is when a module rejects the transmission by returning non-PJ_SUCCESS in the on_tx_request() callback.

This this occurs, there are some scenarios that are causing the transmit data to leak, or in other cases wrong state to be invoked in the dialog/invite session/pjsua call layer.

Change History (1)

comment:1 Changed 16 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r2380.

Also in this changeset protect the memory allocation for transmit packet buffer with try/catch construct to let it fail gracefully.

Note: See TracTickets for help on using tickets.