show_archive_content: Fix trivial memory leak

Fix trivial leak identified by coverity.  The program runs to exit and
the leak doesn't grow, but it's just cleaner to free the allocated
memory.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Siddhesh Poyarekar 2021-05-18 09:07:06 +05:30
parent e5ac7bd679
commit 2317101658

View File

@ -1742,6 +1742,7 @@ show_archive_content (const char *fname, int verbose)
: locnames[idx]);
}
}
free (files);
}
else
for (cnt = 0; cnt < used; ++cnt)