|
@@ -1061,7 +1061,7 @@ struct symbol **sym_re_search(const char *pattern)
|
|
|
}
|
|
|
if (sym_match_arr) {
|
|
|
qsort(sym_match_arr, cnt, sizeof(struct sym_match), sym_rel_comp);
|
|
|
- sym_arr = malloc((cnt+1) * sizeof(struct symbol));
|
|
|
+ sym_arr = malloc((cnt+1) * sizeof(struct symbol *));
|
|
|
if (!sym_arr)
|
|
|
goto sym_re_search_free;
|
|
|
for (i = 0; i < cnt; i++)
|