[PATCH 5.4 072/328] genksyms: fix memory leak when the same symbol is read from *.symref file