- **status**: accepted --> fixed
- **Comment**:
[staging:9b636f]
changeset: 6126:9b636f41027f
branch: opensaf-4.4.x
tag: tip
parent: 6124:e47184989dca
user: Anders Widell<[email protected]>
date: Fri Nov 07 18:30:04 2014 -0500
summary: smf: fix mem leak, call saClmFinalize when saClmClusterNodeGet
returns error [#1205]
---
** [tickets:#1205] smf: memory leak when clm api returns error in 4.x code
base**
**Status:** fixed
**Milestone:** 4.4.2
**Created:** Fri Nov 07, 2014 11:18 AM UTC by Mathi Naickan
**Last Updated:** Fri Nov 07, 2014 11:18 AM UTC
**Owner:** Mathi Naickan
In smfnd_up(): smfd_smfnd.c, in the following case when saClmClusterNodeGet
timesout, saClmFinalize() has to be invoked before returning from the function.
/* Get Clm info about the node */
rc = saClmClusterNodeGet(clmHandle, i_node_id,
10000000000LL, &smfnd->clmInfo);
if (rc != SA_AIS_OK) {
LOG_ER("saClmClusterNodeGet failed, rc=%s", saf_error(rc));
free(smfnd);
return NCSCC_RC_FAILURE;
}
This issue is applicable only to 4.x code base because this leak was fixed by
ticket #1166 in the 4.5.x and default streams.
---
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.------------------------------------------------------------------------------
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets