summaryrefslogtreecommitdiffstats
path: root/src/usr/runtime
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2018-05-31 15:12:26 -0500
committerNicholas E. Bofferding <bofferdn@us.ibm.com>2018-06-04 11:30:30 -0400
commit6359b6a6e881a569c8588b6f2701a71e479fb5ae (patch)
tree3950407291902ceb9fefff5664df58ea941acbe9 /src/usr/runtime
parenta0ea8ab738073bc5c31c25d9f44fca0dfe09df16 (diff)
downloadtalos-hostboot-6359b6a6e881a569c8588b6f2701a71e479fb5ae.tar.gz
talos-hostboot-6359b6a6e881a569c8588b6f2701a71e479fb5ae.zip
Fix memory leaks associated with various msg_sendrecv calls
Change-Id: I30bb6627610391aea248d4a3c4d722ef1695b02f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59677 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: ILYA SMIRNOV <ismirno@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/usr/runtime')
-rw-r--r--src/usr/runtime/populate_hbruntime.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/runtime/populate_hbruntime.C b/src/usr/runtime/populate_hbruntime.C
index 129068941..5e2c8ddb2 100644
--- a/src/usr/runtime/populate_hbruntime.C
+++ b/src/usr/runtime/populate_hbruntime.C
@@ -3286,6 +3286,10 @@ errlHndl_t persistent_rwAttrRuntimeCheck( void )
}
}
+ // Always free the message since send/recv implies ownership
+ msg_free(l_msg);
+ l_msg=nullptr;
+
return l_err;
} // end persistent_rwAttrRuntimeCheck
OpenPOWER on IntegriCloud