[PATCH 6.12 521/590] genksyms: fix memory leak when the same symbol is read from *.symref file