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

ASF GitHub Bot commented on DISPATCH-1214:
------------------------------------------

ganeshmurthy commented on pull request #439: DISPATCH-1214: remove shutdown 
leak reported by Valgrind
URL: https://github.com/apache/qpid-dispatch/pull/439#discussion_r249841944
 
 

 ##########
 File path: src/router_core/router_core.c
 ##########
 @@ -173,6 +173,9 @@ void qdr_core_free(qdr_core_t *core)
         free(link->insert_prefix);
         free(link->strip_prefix);
         link->name = 0;
+        for (int i = 0; i < QDR_LINK_LIST_CLASSES; ++i) {
+            free_qdr_link_ref_t(link->ref[i]);
 
 Review comment:
   instead of calling free_qdr_link_ref_t is it worth calling 
   bool qdr_del_link_ref(qdr_link_ref_list_t *ref_list, qdr_link_t *link, int 
cls)
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Valgrind finds invalid reads and many leaks during the unit tests
> -----------------------------------------------------------------
>
>                 Key: DISPATCH-1214
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1214
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Router Node
>    Affects Versions: 1.4.1
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>            Priority: Major
>             Fix For: 1.6.0
>
>         Attachments: grinder-12128.txt, grinder-report.txt
>
>
> See the attached grinder report



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to