- **Comment**:

2\. smfd_smfnd.c: smfnd_up(): there are 2 problems.
   -return value not checked and caller function "proc_mds_info()" steps the 
"no_of_smfnd" counter anyway.
   -memory leak in case when "saClmInitialize()" returns other than "SA_AIS_OK".
Proposed solution: free memory if "saClmInitialize()" returns other than 
"SA_AIS_OK". Add checking of return value of "smfnd_up()" in "proc_mds_info()", 
if not "SA_AIS_OK" then don't step the counter. Possibly add a warning log.




---

** [tickets:#1154] smf: defects detected by Coverity tool should be fixed**

**Status:** assigned
**Milestone:** 4.6.FC
**Created:** Mon Oct 06, 2014 11:38 AM UTC by Robert Apanowicz
**Last Updated:** Tue Feb 03, 2015 09:41 AM UTC
**Owner:** Robert Apanowicz

This ticket is the placeholder for all the defects of SMF which are detected by 
Coverity tool.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to