[Gluster-devel] New Defects reported by Coverity Scan for gluster/glusterfs

scan-admin at coverity.com scan-admin at coverity.com
Tue Mar 10 08:50:58 UTC 2015


Hi,

Please find the latest report on new defect(s) introduced to gluster/glusterfs found with Coverity Scan.

61 new defect(s) introduced to gluster/glusterfs found with Coverity Scan.
3 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 20 of 61 defect(s)


** CID 1174827:    (RESOURCE_LEAK)
/xlators/mgmt/glusterd/src/glusterd-store.c: 2486 in glusterd_store_retrieve_rbstate()
/xlators/mgmt/glusterd/src/glusterd-store.c: 2486 in glusterd_store_retrieve_rbstate()


________________________________________________________________________________________________________
*** CID 1174827:    (RESOURCE_LEAK)
/xlators/mgmt/glusterd/src/glusterd-store.c: 2486 in glusterd_store_retrieve_rbstate()
2480             if (ret)
2481                     goto out;
2482     
2483     out:
2484             gf_log (this->name, GF_LOG_TRACE, "Returning with %d", ret);
2485     
>>>     CID 1174827:    (RESOURCE_LEAK)
>>>     Variable "iter" going out of scope leaks the storage it points to.
2486             return ret;
2487     }
2488     
2489     int32_t
2490     glusterd_store_retrieve_node_state (glusterd_volinfo_t *volinfo)
2491     {
/xlators/mgmt/glusterd/src/glusterd-store.c: 2486 in glusterd_store_retrieve_rbstate()
2480             if (ret)
2481                     goto out;
2482     
2483     out:
2484             gf_log (this->name, GF_LOG_TRACE, "Returning with %d", ret);
2485     
>>>     CID 1174827:    (RESOURCE_LEAK)
>>>     Variable "iter" going out of scope leaks the storage it points to.
2486             return ret;
2487     }
2488     
2489     int32_t
2490     glusterd_store_retrieve_node_state (glusterd_volinfo_t *volinfo)
2491     {


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/987?tab=overview

To manage Coverity Scan email notifications for "gluster-devel at gluster.org", click https://scan.coverity.com/subscriptions/edit?email=gluster-devel%40gluster.org&token=7dffab14bc5a7180e75b0d047539f148 .



More information about the Gluster-devel mailing list