Following command leaks memory with some SOL packets (simply generate some
activity on the console):

ipmitool -I lanplus -H somehost -U root -P somepasswd sol activate 

The patch below plugs the leak.

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

 src/plugins/lanplus/lanplus.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/plugins/lanplus/lanplus.c b/src/plugins/lanplus/lanplus.c
index cccb4d4..09fd671 100644
--- a/src/plugins/lanplus/lanplus.c
+++ b/src/plugins/lanplus/lanplus.c
@@ -2293,6 +2293,7 @@ ipmi_lanplus_send_payload(
        case IPMI_PAYLOAD_TYPE_RMCP_OPEN_REQUEST:
        case IPMI_PAYLOAD_TYPE_RAKP_1:
        case IPMI_PAYLOAD_TYPE_RAKP_3:
+       case IPMI_PAYLOAD_TYPE_SOL:
                free(msg_data);
                break;
        }


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to