intel/tools: fix resource leak
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Fri, 26 Oct 2018 14:29:34 +0000 (17:29 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 1 Nov 2018 13:21:07 +0000 (13:21 +0000)
commitfc3cecda8cea97727ac5233e35e774035d3dff13
tree842add7bcfeba042c4cc48202a647fc0b31abe6f
parentae8e81b0e300e9ad5c3635378cc0467e8d50f239
intel/tools: fix resource leak

Some memory and file descriptors are not freed/closed.

v2: fixed case where we skipped the 'aub' variable initialization

Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/error2aub.c