mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-29 16:51:35 +00:00
Fix memory leak in get_supermicro_evt_desc()
Commit fixes memory leak in get_supermicro_evt_desc() - CID#1149050
This commit is contained in:
@@ -587,6 +587,10 @@ get_supermicro_evt_desc(struct ipmi_intf *intf, struct sel_event_record *rec)
|
|||||||
/* check the chipset type */
|
/* check the chipset type */
|
||||||
oem_id = ipmi_get_oem_id(intf);
|
oem_id = ipmi_get_oem_id(intf);
|
||||||
if (oem_id == 0) {
|
if (oem_id == 0) {
|
||||||
|
if (desc != NULL) {
|
||||||
|
free(desc);
|
||||||
|
desc = NULL;
|
||||||
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
length = sizeof(supermicro_X8);
|
length = sizeof(supermicro_X8);
|
||||||
|
|||||||
Reference in New Issue
Block a user