Re: Fix resource leak (src/bin/pg_combinebackup/pg_combinebackup.c)

2023-12-30 Thread Michael Paquier
Hi Ranier, On Sat, Dec 30, 2023 at 10:34:12AM -0300, Ranier Vilela wrote: > The function scan_for_existing_tablespaces in > (src/bin/pg_combinebackup/pg_combinebackup.c) > Has a resource leak. > > The function opendir opendir >

Fix resource leak (src/bin/pg_combinebackup/pg_combinebackup.c)

2023-12-30 Thread Ranier Vilela
Hi, Per Coverity. The function scan_for_existing_tablespaces in (src/bin/pg_combinebackup/pg_combinebackup.c) Has a resource leak. The function opendir opendir Must be freed with closedir