Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2012 closed defect (fixed)

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 (3)

comment:1 Changed 8 years ago by riza

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

In 5584:

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

comment:2 Changed 8 years ago by riza

In 5585:

Re #2012: Add additional comments.

comment:3 Changed 8 years ago by ming

In 5592:

Re #2012: (minor) remove warning: '/*' within block comment

Note: See TracTickets for help on using tickets.