[PATCH 5.15 176/620] genksyms: fix memory leak when the same symbol is read from *.symref file