diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index d117c68d1607..b92b704e7ace 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -455,6 +455,8 @@ static void build_initial_tok_table(void) table[pos] = table[i]; learn_symbol(table[pos].sym, table[pos].len); pos++; + } else { + free(table[i].sym); } } table_cnt = pos;