]> git.baikalelectronics.ru Git - uboot.git/commit
log: Correct missing free() on error in log_add_filter()
authorSimon Glass <sjg@chromium.org>
Mon, 2 Apr 2018 08:42:39 +0000 (02:42 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 10 Apr 2018 15:52:16 +0000 (11:52 -0400)
commit74aad9c7f7853db66e201e02815ea5182cc28582
tree83ff64a294e3ccb05a266ccd07de6f394a163c58
parent83f340bc0d56a75aff79745a72e3bb6bd23f5737
log: Correct missing free() on error in log_add_filter()

If there is a problem with the parameters to log_add_filter(), the memory
allocated is currently not freed. Fix this.

Reported-by: Coverity (CID: 171962)
Signed-off-by: Simon Glass <sjg@chromium.org>
common/log.c