osaf/services/saf/amf/amfd/util.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
* use delete[] for variables allocated with new[]
diff --git a/osaf/services/saf/amf/amfd/util.cc
b/osaf/services/saf/amf/amfd/util.cc
--- a/osaf/services/saf/amf/amfd/util.cc
+++ b/osaf/services/saf/amf/amfd/util.cc
@@ -1655,7 +1655,7 @@
compcsi_info = susi_msg->msg_info.d2n_su_si_assign.list;
susi_msg->msg_info.d2n_su_si_assign.list = compcsi_info->next;
if (compcsi_info->attrs.list != NULL) {
- delete(compcsi_info->attrs.list);
+ delete [] (compcsi_info->attrs.list);
compcsi_info->attrs.list = NULL;
}
delete compcsi_info;
@@ -1681,7 +1681,7 @@
AVSV_D2N_PG_TRACK_ACT_RSP_MSG_INFO *info =
&pg_msg->msg_info.d2n_pg_track_act_rsp;
if (info->mem_list.numberOfItems)
- delete info->mem_list.notification;
+ delete [] info->mem_list.notification;
info->mem_list.notification = 0;
info->mem_list.numberOfItems = 0;
------------------------------------------------------------------------------
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-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel