[staging:edf3fa]
changeset: 4771:edf3fa4be9ca
tag: tip
user: A V Mahesh <[email protected]>
date: Fri Dec 27 09:13:35 2013 +0530
summary: cpsv: Memory Leaks when reploc node add & delete in cpd [#529]
---
** [tickets:#529] Corrections to do in CPD code**
**Status:** fixed
**Created:** Wed Jul 31, 2013 10:00 AM UTC by Ramesh
**Last Updated:** Mon Sep 09, 2013 10:21 AM UTC
**Owner:** A V Mahesh (AVM)
Corrections to do in CPSv code.
(1) In function cpd_sb_proc_ckpt_dest_add()
line: 499
else {
TRACE_4("cpd standby dest add evt failed for ckptid:
%llx",msg->info.dest_add.ckpt_id);
return NCSCC_RC_OUT_OF_MEM;
}
Before return, should free() "nref_info" and "cref_info".
line: 562
free_mem:
if (node_info == NULL) {
}
If line:513 saClmClusterNodeGet() fails, should free "nref_info" and "cref_info"
(2) In function cpd_ckpt_reploc_node_delete()
line 437: rc = cpd_ckpt_reploc_node_add(&cb->ckpt_reploc_tree,
ckpt_reploc_node, cb->ha_state, cb->immOiHandle);
Should be removed else.. if "ckpt_reploc_node" has to retain then do not
delete it subsequently.
(3) In function cpd_ckpt_ref_info_add() , "cref_info" is not added to the list
if the same "ckpt_id" exist. In this case we have to free() "cref_info".
(4) Similarly, In function cpd_node_ref_info_add() , "nref_info" is not added
to the list if the same "dest" exist. In this case we have to free()
"nref_info".
---
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.------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets