[PATCH openEuler-5.10-LTS 080/151] net: genl: fix error path memory leak in policy dumping