NVIDIA/cbootimage — pull request #4 by pgeorgi (2014-10-01 18:35:29+00:00)
Title: data_layout: improve memory handling

- free empty_blk if it's allocated and there's an error
- only free empty_blk if it's non-NULL. While POSIX
requests such free()s to be safe, some implementations
(eg Solaris) aren't compliant.

Found-by: Coverity Scan
Signed-off-by: Patrick Georgi