rmbox: Close opened files

Input and output files in trace_read function should be closed after using.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
Tomasz Lauda 2018-03-29 13:55:47 +02:00 committed by Liam Girdwood
parent 739acd1e5e
commit 78ad1ccce5
1 changed files with 4 additions and 0 deletions

View File

@ -232,6 +232,10 @@ trace:
addr += TRACE_BLOCK_SIZE;
}
fclose(in_fd);
if (out_fd)
fclose(out_fd);
return 0;
}