[PATCH 5.10 113/462] genksyms: fix memory leak when the same symbol is read from *.symref file