[PATCH openEuler-1.0-LTS 08/13] of: unittest: Add of_node_put() before return