FAPI: Fix memory leak caused by scandir.
FAPI: Fix memory leak caused by scandir.

Memory allocated by scandir when reading the fapi profile
was not freed.
Should fix the failures in:
https://github.com/tpm2-software/tpm2-tools/pull/3144

Signed-off-by: Juergen Repp <3cce2f8c4c82c9d6ce8dd1b54c24181b93e9e4a5@web.de>

tpm2-software/tpm2-tss,tpm2-software/tpm2-tss,tpm2-software/tpm2-tss