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