The string allocated in sym_warn_unmet_dep() is never freed, leading to a memory leak when an unmet dependency is detected.
Unified · Split
| @@ -388,6 +388,7 @@ static void sym_warn_unmet_dep(const struct symbol *sym) · 387 unmodified lines | ||
| 388 | 388 | " Selected by [m]:\n"); |
| 389 | 389 | |
| 390 | 390 | fputs(str_get(&gs), stderr); |
| 391 | + str_free(&gs); | |
| 391 | 392 | sym_warnings++; |
| 392 | 393 | } |
| 393 | 394 | |