mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +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:
parent
c97dbd3461
commit
e37e3ab7de
@ -587,6 +587,10 @@ get_supermicro_evt_desc(struct ipmi_intf *intf, struct sel_event_record *rec)
|
||||
/* check the chipset type */
|
||||
oem_id = ipmi_get_oem_id(intf);
|
||||
if (oem_id == 0) {
|
||||
if (desc != NULL) {
|
||||
free(desc);
|
||||
desc = NULL;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
length = sizeof(supermicro_X8);
|
||||
|
Loading…
x
Reference in New Issue
Block a user