[ 
https://issues.apache.org/jira/browse/DISPATCH-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13950893#comment-13950893
 ] 

Pavel Moravec commented on DISPATCH-37:
---------------------------------------

Playing with the scenarios and debugfging the leaks, it seems like freeing 
almost any object forgets to free "nested" objects it encapsulates. E.g. when 
dropping a connection, qd_dealloc is called to qd_connection_t but is not 
called within it for qd_link_t for any link on that connection.

That is imho the key cause of most of the leaks reported here.

> Various memory leaks
> --------------------
>
>                 Key: DISPATCH-37
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-37
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Container
>    Affects Versions: 0.1
>            Reporter: Pavel Moravec
>         Attachments: out01.log
>
>
> Valgrind reports various memory leaks after very basic usage of Dispatch 
> router. For basic scenario, have 2 routers A<->B and send messages from 
> bouncing producer connected to A to a bouncing consumer connected to B. 
> Attached is valgrind output for that.
> Some particular memory leaks to be commented later on.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to