[
https://issues.apache.org/jira/browse/DISPATCH-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009776#comment-17009776
]
ASF subversion and git services commented on DISPATCH-1511:
-----------------------------------------------------------
Commit 1b42fcfefbaa051c3625cead28f48ad80e546774 in qpid-dispatch's branch
refs/heads/master from Ken Giusti
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=1b42fcf ]
DISPATCH-1511: free memory used for passwords when done
This closes #651
> Leak reported by coverity static analysis
> ------------------------------------------
>
> Key: DISPATCH-1511
> URL: https://issues.apache.org/jira/browse/DISPATCH-1511
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Management Agent
> Affects Versions: 1.9.0
> Reporter: Ken Giusti
> Assignee: Ken Giusti
> Priority: Trivial
> Fix For: 1.11.0
>
>
> connection_manager.c:
> {{410 else if (actual_pass) {
> 411 free(config->sasl_password);
> 412 config->sasl_password = actual_pass;
> 413 }
> CID 350027 (#1 of 1): Resource leak (RESOURCE_LEAK)38. leaked_storage:
> Variable actual_pass going out of scope leaks the storage it points to.
> 414 }}}
> ---
> {{600 }
> 601 else if (actual_pass) {
> 602 free(ssl_profile->ssl_password);
> 603 ssl_profile->ssl_password = actual_pass;
> 604 }
> CID 349805 (#1 of 1): Resource leak (RESOURCE_LEAK)19. leaked_storage:
> Variable actual_pass going out of scope leaks the storage it points to.
> 605 }}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]