Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak when imsdroid receive incoming call! #24

Closed
GoogleCodeExporter opened this issue Aug 13, 2015 · 3 comments
Closed

memory leak when imsdroid receive incoming call! #24

GoogleCodeExporter opened this issue Aug 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

when imsdroid receive incoming call,and answer,then hangup.


REASON:
  when receive ACK from peer,tinysip create transaction for this dialog,then dialog object ref will increase.
  but dialog object ref will not decrease when hangup.
  so the relative object(for example dialog object) will not free.

BUG FIX:
tinySIP/src/dialogs/tsip_dialog_layer.c

tsip_dialog_layer_handle_incoming_msg.

transac = tsip_transac_layer_new(layer_transac, tsk_false, message, 
TSIP_DIALOG(dialog));
tsk_object_unref(dialog);

======>
                        if (!strcasecmp(message->CSeq->method,"ACK")) {
                                ret = dialog->callback(dialog, tsip_dialog_i_msg, message);
                                tsk_object_unref(dialog);
                                goto bail;
                        } else {
                                transac = tsip_transac_layer_new(layer_transac, tsk_false, message, TSIP_DIALOG(dialog));
                                tsk_object_unref(dialog);
                        }





Original issue reported on code.google.com by zth7...@tom.com on 21 Oct 2010 at 9:38

@GoogleCodeExporter
Copy link
Author

Original comment by boss...@yahoo.fr on 28 Oct 2010 at 7:11

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Original comment by boss...@yahoo.fr on 5 Jan 2011 at 10:13

  • Changed state: NextRelease

@GoogleCodeExporter
Copy link
Author

Original comment by boss...@yahoo.fr on 7 Feb 2011 at 12:25

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant