summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2/include/collect_reg_ffdc.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/hwpf/fapi2/include/collect_reg_ffdc.H')
-rw-r--r--src/import/hwpf/fapi2/include/collect_reg_ffdc.H10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/collect_reg_ffdc.H b/src/import/hwpf/fapi2/include/collect_reg_ffdc.H
index bf62d7b25..aa5dd5176 100644
--- a/src/import/hwpf/fapi2/include/collect_reg_ffdc.H
+++ b/src/import/hwpf/fapi2/include/collect_reg_ffdc.H
@@ -382,6 +382,12 @@ ReturnCode collectRegisterData(std::vector<T>& i_addresses, U& i_reader,
if(l_rc)
{
l_data = 0xbaddbadd;
+
+#ifdef __DELETE_PLATFORMDATA_SUPPORTED
+ // delete the platform log if it exits
+ deletePlatformDataPointer(l_rc);
+#endif
+
}
else
{
@@ -418,6 +424,10 @@ ReturnCode collectRegisterAndAddressData(std::vector<T>& i_addresses, U& i_reade
if(l_rc)
{
l_data = 0xbaddbadd;
+#ifdef __DELETE_PLATFORMDATA_SUPPORTED
+ // delete the platform data pointer if it exists
+ deletePlatformDataPointer(l_rc);
+#endif
}
else
{
OpenPOWER on IntegriCloud