Commit cb9241ae authored by Jean-Christophe Dubois's avatar Jean-Christophe Dubois Committed by David Gibson
Browse files

DTC: Fix memory leak on flatname.



If flatname was not referenced by the "node" structure, the reference to the
allocated string is lost at function exit.

We need to free it if is not used by "node".

Signed-off-by: default avatarJean-Christophe Dubois <jcd@tribudubois.net>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 1ee0ae24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment