mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:421 - Fix memleak for sol output
CC: Thomas Renninger <trenn@suse.com>
This commit is contained in:
parent
6a196c4a6a
commit
a74e837562
@ -2101,7 +2101,7 @@ ipmi_lanplus_send_payload(
|
|||||||
struct ipmi_v2_payload * payload)
|
struct ipmi_v2_payload * payload)
|
||||||
{
|
{
|
||||||
struct ipmi_rs * rsp = NULL;
|
struct ipmi_rs * rsp = NULL;
|
||||||
uint8_t * msg_data;
|
uint8_t * msg_data = NULL;
|
||||||
int msg_length;
|
int msg_length;
|
||||||
struct ipmi_session * session = intf->session;
|
struct ipmi_session * session = intf->session;
|
||||||
struct ipmi_rq_entry * entry = NULL;
|
struct ipmi_rq_entry * entry = NULL;
|
||||||
@ -2341,6 +2341,7 @@ ipmi_lanplus_send_payload(
|
|||||||
case IPMI_PAYLOAD_TYPE_RMCP_OPEN_REQUEST:
|
case IPMI_PAYLOAD_TYPE_RMCP_OPEN_REQUEST:
|
||||||
case IPMI_PAYLOAD_TYPE_RAKP_1:
|
case IPMI_PAYLOAD_TYPE_RAKP_1:
|
||||||
case IPMI_PAYLOAD_TYPE_RAKP_3:
|
case IPMI_PAYLOAD_TYPE_RAKP_3:
|
||||||
|
case IPMI_PAYLOAD_TYPE_SOL:
|
||||||
free(msg_data);
|
free(msg_data);
|
||||||
msg_data = NULL;
|
msg_data = NULL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user