commit | 848e94d0ba7296d81e3c00b01bad1c13741497fb | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Mon May 20 18:05:04 2019 +0200 |
committer | Simon Glass <sjg@chromium.org> | Wed Jul 10 16:52:58 2019 -0600 |
tree | bfdd8240b436f9846bb9c5ae2233ef94744f4c87 | |
parent | 1edc5688df70ee3ddb692ef3429ac28ed8666a4b [diff] |
fdtdec: test: Fix memory leak Free the memory allocated to store the test FDT upon test completion to avoid leaking the memory. We don't bother cleaning up on test failure since the code is broken in that case and should be fixed, in which case the leak would also go away. Reported-by: Tom Rini <tom.rini@gmail.com> Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org>