ldconfig: Fix memory leaks
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 18 May 2021 03:59:02 +0000 (09:29 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Tue, 18 May 2021 03:59:02 +0000 (09:29 +0530)
commit468d772e81e9842f4f73431c164b4a12f13d8658
tree173df635eadc05a255bcd1302d51c8fa0f4b0de2
parentc8c3c5e89a5f6a9d41d244e9803ccaf4250e7e62
ldconfig: Fix memory leaks

Coverity discovered that paths allocated by chroot_canon are not freed
in a couple of routines in ldconfig.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/ldconfig.c