[openEuler-5.10 396/557] driver core: Fix possible memory leak in device_link_add()