summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/attrrp_common.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/targeting/attrrp_common.C')
-rwxr-xr-xsrc/usr/targeting/attrrp_common.C7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/usr/targeting/attrrp_common.C b/src/usr/targeting/attrrp_common.C
index 26213dcf5..173c249ec 100755
--- a/src/usr/targeting/attrrp_common.C
+++ b/src/usr/targeting/attrrp_common.C
@@ -61,6 +61,7 @@ namespace TARGETING
if (iv_sections) // @TODO RTC:186585 move if... to #ifndef clause
{
delete[] iv_sections;
+ iv_sections = nullptr;
} // @TODO RTC:186585 move if... to #ifndef clause
#ifndef __HOSTBOOT_RUNTIME
@@ -71,7 +72,13 @@ namespace TARGETING
{
if (iv_nodeContainer[i].pSections)
{
+ if((i == NODE0) && (iv_sections == nullptr))
+ {
+ iv_nodeContainer[i].pSections = nullptr;
+ continue;
+ } // @TODO RTC:186585 move if...
delete[] iv_nodeContainer[i].pSections;
+ iv_nodeContainer[i].pSections = nullptr;
}
}
OpenPOWER on IntegriCloud