Ticket #2012 (closed defect: fixed)

Opened 5 days ago

Last modified 5 days ago

Prevent memory leak when rejecting a call from on_incoming_call() callback

Reported by: riza Owned by: bennylp
Priority: normal Milestone: release-2.7
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

The call->incoming_data() will get reset (set to NULL) on reset_call(), which lead to memory leak since it's not properly released.

One example of this case is when rejecting a call from on_incoming_call() callback.

Thanks to Alexandre Beaulieu for the report.

Change History

comment:1 Changed 5 days ago by riza

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

In 5584:

Fix #2012: Prevent memory leak when rejecting a call from on_incoming_call()
callback.

comment:2 Changed 5 days ago by riza

In 5585:

Re #2012: Add additional comments.

Note: See TracTickets for help on using tickets.