8000 Free unnecessary file object · postgrespro/pg_probackup@eead6b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit eead6b6

Browse files
committed
Free unnecessary file object
1 parent 9ac30ad commit eead6b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/dir.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,9 @@ dir_list_file(parray *files, const char *root, bool exclude, bool omit_symlink,
443443
parray_append(files, file);
444444

445445
dir_list_file_internal(files, root, file, exclude, omit_symlink, black_list);
446+
447+
if (!add_root)
448+
pgFileFree(file);
446449
}
447450

448451
/*

0 commit comments

Comments
 (0)
0