bootargs: Fix memory leak in linux_bootargs_get()
globalvar_get_match() returns an allocated string which may be
empty. We have to free() the empty string aswell.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 01811d0 commit ecf2350530f45fefe7bab75dc63ccf56a539e8b7
@Sascha Hauer Sascha Hauer authored on 26 Jan 2018
Showing 1 changed file
View
common/bootargs.c