qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Commented] (DISPATCH-1511) Leak reported by coverity static analysis
Date Tue, 07 Jan 2020 14:39:00 GMT

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

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

asfgit commented on pull request #651: DISPATCH-1511: free memory used for passwords when
done
URL: https://github.com/apache/qpid-dispatch/pull/651
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message