[PATCH 6.1 232/578] genksyms: fix memory leak when the same symbol is read from *.symref file