Skip to content

Commit 175a2ff

Browse files
GuEe-GUImysterywolf
authored andcommitted
Fixup platform not free device in OFW
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 2ec69c3 commit 175a2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/drivers/core/platform_ofw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ rt_err_t rt_platform_ofw_free(struct rt_platform_device *pdev)
248248
rt_ofw_node_clear_flag(np, RT_OFW_F_PLATFORM);
249249
rt_ofw_node_put(np);
250250

251-
pdev->parent.ofw_node = RT_NULL;
251+
rt_free(pdev);
252252
}
253253
}
254254
else

0 commit comments

Comments
 (0)