Commit fa917094 authored by qiuguorui1's avatar qiuguorui1 Committed by Simon Horman
Browse files

dt-ops: fix memory leak when new_node malloc fails



In function dtb_set_property, when malloc new_node fails,
we need to free new_dtb before return.

Fixes: f56cbcf4 ("kexec/dt-ops.c: Fix '/chosen' v/s 'chosen' node
being passed to fdt helper functions")
Signed-off-by: default avatarqiuguorui1 <qiuguorui1@huawei.com>
Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
parent d4eaff6b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment