[PATCH 6.12 520/590] genksyms: fix memory leak when the same symbol is added from source