You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Ganesh Murthy (JIRA)" <ji...@apache.org> on 2018/05/01 18:59:00 UTC
[jira] [Resolved] (DISPATCH-986) Coverity issues on master
[ https://issues.apache.org/jira/browse/DISPATCH-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ganesh Murthy resolved DISPATCH-986.
------------------------------------
Resolution: Fixed
> Coverity issues on master
> -------------------------
>
> Key: DISPATCH-986
> URL: https://issues.apache.org/jira/browse/DISPATCH-986
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Container
> Affects Versions: 1.1.0
> Reporter: Ganesh Murthy
> Assignee: Ganesh Murthy
> Priority: Major
> Fix For: 1.1.0
>
>
> 2 new defect(s) introduced to Apache Qpid dispatch-router found with Coverity Scan.
> 2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.
>
> New defect(s) Reported-by: Coverity Scan
> Showing 2 of 2 defect(s)
>
>
> ** CID 277470: Resource leaks (RESOURCE_LEAK)
> /home/kgiusti/work/dispatch/qpid-dispatch/src/connection_manager.c: 607 in qd_dispatch_configure_sasl_plugin()
>
>
> ________________________________________________________________________________________________________
> *** CID 277470: Resource leaks (RESOURCE_LEAK)
> /home/kgiusti/work/dispatch/qpid-dispatch/src/connection_manager.c: 607 in qd_dispatch_configure_sasl_plugin()
> 601 }
> 602
> 603 sasl_plugin->sasl_init_hostname = qd_entity_opt_string(entity, "realm", 0); CHECK();
> 604 sasl_plugin->auth_ssl_profile = qd_entity_opt_string(entity, "sslProfile", 0); CHECK();
> 605
> 606 qd_log(cm->log_source, QD_LOG_INFO, "Created SASL plugin config with name %s", sasl_plugin->name);
> >>> CID 277470: Resource leaks (RESOURCE_LEAK)
> >>> Variable "auth_port" going out of scope leaks the storage it points to.
> 607 return sasl_plugin;
> 608
> 609 error:
> 610 qd_log(cm->log_source, QD_LOG_ERROR, "Unable to create SASL plugin config: %s", qd_error_message());
> 611 config_sasl_plugin_free(cm, sasl_plugin);
> 612 return 0;
>
> ** CID 277469: Resource leaks (RESOURCE_LEAK)
> /home/kgiusti/work/dispatch/qpid-dispatch/src/connection_manager.c: 607 in qd_dispatch_configure_sasl_plugin()
>
>
> ________________________________________________________________________________________________________
> *** CID 277469: Resource leaks (RESOURCE_LEAK)
> /home/kgiusti/work/dispatch/qpid-dispatch/src/connection_manager.c: 607 in qd_dispatch_configure_sasl_plugin()
> 601 }
> 602
> 603 sasl_plugin->sasl_init_hostname = qd_entity_opt_string(entity, "realm", 0); CHECK();
> 604 sasl_plugin->auth_ssl_profile = qd_entity_opt_string(entity, "sslProfile", 0); CHECK();
> 605
> 606 qd_log(cm->log_source, QD_LOG_INFO, "Created SASL plugin config with name %s", sasl_plugin->name);
> >>> CID 277469: Resource leaks (RESOURCE_LEAK)
> >>> Variable "auth_host" going out of scope leaks the storage it points to.
> 607 return sasl_plugin;
> 608
> 609 error:
> 610 qd_log(cm->log_source, QD_LOG_ERROR, "Unable to create SASL plugin config: %s", qd_error_message());
> 611 config_sasl_plugin_free(cm, sasl_plugin);
> 612 return 0;
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org