forked from pool/ipmitool
Thomas Renninger
570b85101b
- Update to latest ipmitool source code commit 9020b67347f46554009591ae91e4fa8875c65dfa Date: Tue Jan 12 21:16:37 2016 +0500 - Fix memleak: bnc#968105 Add: ipmitool-sol_memleak.patch OBS-URL: https://build.opensuse.org/request/show/361388 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=35
22 lines
866 B
Diff
22 lines
866 B
Diff
Index: ipmitool-1.8.16/src/plugins/lanplus/lanplus.c
|
|
===================================================================
|
|
--- ipmitool-1.8.16.orig/src/plugins/lanplus/lanplus.c 2015-11-22 13:50:54.000000000 +0100
|
|
+++ ipmitool-1.8.16/src/plugins/lanplus/lanplus.c 2016-02-25 13:38:10.989859786 +0100
|
|
@@ -2101,7 +2101,7 @@ ipmi_lanplus_send_payload(
|
|
struct ipmi_v2_payload * payload)
|
|
{
|
|
struct ipmi_rs * rsp = NULL;
|
|
- uint8_t * msg_data;
|
|
+ uint8_t * msg_data = NULL;
|
|
int msg_length;
|
|
struct ipmi_session * session = intf->session;
|
|
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_RAKP_1:
|
|
case IPMI_PAYLOAD_TYPE_RAKP_3:
|
|
+ case IPMI_PAYLOAD_TYPE_SOL:
|
|
free(msg_data);
|
|
msg_data = NULL;
|
|
break;
|