mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
3600931 leaks
This commit is contained in:
parent
15d683d86d
commit
8a4139e1b8
@ -609,12 +609,16 @@ char * get_dell_evt_desc(struct ipmi_intf * intf, struct sel_event_record * rec)
|
|||||||
if (NULL == rsp)
|
if (NULL == rsp)
|
||||||
{
|
{
|
||||||
lprintf(LOG_ERR, " Error getting system info");
|
lprintf(LOG_ERR, " Error getting system info");
|
||||||
|
if (desc != NULL)
|
||||||
|
free(desc);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
else if (rsp->ccode > 0)
|
else if (rsp->ccode > 0)
|
||||||
{
|
{
|
||||||
lprintf(LOG_ERR, " Error getting system info: %s",
|
lprintf(LOG_ERR, " Error getting system info: %s",
|
||||||
val2str(rsp->ccode, completion_code_vals));
|
val2str(rsp->ccode, completion_code_vals));
|
||||||
|
if (desc != NULL)
|
||||||
|
free(desc);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
version = rsp->data[4];
|
version = rsp->data[4];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user