This is an automated email from the ASF dual-hosted git repository. yjhjstz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 3045ae556da791d0ee906ccae36f1ab75373b1a3 Author: interma <[email protected]> AuthorDate: Wed Apr 10 12:49:21 2024 +0800 Fix an obvious memory leak in _bitmap_xlog_insert_bitmapwords(), it caused the memory usage of startup process to continue to grow. --- src/backend/access/bitmap/bitmapxlog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/access/bitmap/bitmapxlog.c b/src/backend/access/bitmap/bitmapxlog.c index d6969de36c..2ce9991a1b 100644 --- a/src/backend/access/bitmap/bitmapxlog.c +++ b/src/backend/access/bitmap/bitmapxlog.c @@ -323,6 +323,8 @@ _bitmap_xlog_insert_bitmapwords(XLogRecPtr lsn, XLogReaderState *record) if (BufferIsValid(bitmapBuffers[bmpageno])) UnlockReleaseBuffer(bitmapBuffers[bmpageno]); } + + pfree(bitmapBuffers); } static void --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
