This is an automated email from the ASF dual-hosted git repository. avamingli pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 977ff769ce1734eaafcf555b6cd6566ae347903f Author: Andrey Sokolov <[email protected]> AuthorDate: Sun Apr 2 21:49:07 2023 +0300 Free the dbpath string when it becomes unnecessary --- src/backend/catalog/storage_database.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/catalog/storage_database.c b/src/backend/catalog/storage_database.c index 8c5aa70572..b7ccaa91e3 100644 --- a/src/backend/catalog/storage_database.c +++ b/src/backend/catalog/storage_database.c @@ -188,4 +188,6 @@ dropDatabaseDirectory(DbDirNode *deldb, bool isRedo) ereport(WARNING, (errmsg("some useless files may be left behind in old database directory \"%s\"", dbpath))); + + pfree(dbpath); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
