History

kconfig: fix memory leak in sym_warn_unmet_dep()

The string allocated in sym_warn_unmet_dep() is never freed, leading to a memory leak when an unmet dependency is detected.

Masahiro Yamada committed 1 year ago

Commit a409fc11 parent a314f521 file · +1 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/symbol.c+1−0
@@ -388,6 +388,7 @@ static void sym_warn_unmet_dep(const struct symbol *sym) · 387 unmodified lines
388 " Selected by [m]:\n");388 " Selected by [m]:\n");
389 389
390 fputs(str_get(&gs), stderr);390 fputs(str_get(&gs), stderr);
391 str_free(&gs);
391 sym_warnings++;392 sym_warnings++;
392}393}
393 394