mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3577155 - 'lib/ipmi_main.c' - memory leaks
Commit fixes two memory leaks in 'lib/ipmi_main.c'. They were caused by not freeing memory allocated by strdup() which uses malloc() underneath. Reported by Duncan Idaho.
This commit is contained in:
parent
131846fb40
commit
d65cccc32a
@ -960,6 +960,10 @@ ipmi_main(int argc, char ** argv,
|
|||||||
free(oemtype);
|
free(oemtype);
|
||||||
if (seloem != NULL)
|
if (seloem != NULL)
|
||||||
free(seloem);
|
free(seloem);
|
||||||
|
if (kgkey != NULL)
|
||||||
|
free(kgkey);
|
||||||
|
if (sdrcache != NULL)
|
||||||
|
free(sdrcache);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user