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)
commit45fac9fc186dd5259dfeddc7e86a0d55bb4377bd
tree83ff64a294e3ccb05a266ccd07de6f394a163c58
parent004d00914a1888a050ef2d30e52e8e3862983ccb
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