3600931 leaks

This commit is contained in:
Ales Ledvinka 2013-01-16 12:27:29 +00:00
parent 15d683d86d
commit 8a4139e1b8

View File

@ -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];