[PATCH 5.10 112/462] genksyms: fix memory leak when the same symbol is added from source