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:
Zdenek Styblik 2012-10-17 05:03:45 +00:00
parent 131846fb40
commit d65cccc32a

View File

@ -960,6 +960,10 @@ ipmi_main(int argc, char ** argv,
free(oemtype);
if (seloem != NULL)
free(seloem);
if (kgkey != NULL)
free(kgkey);
if (sdrcache != NULL)
free(sdrcache);
return rc;
}