]> git.ipfire.org Git - thirdparty/postgresql.git/commit
dbase_redo: Fix Valgrind-reported memory leak
authorÁlvaro Herrera <alvherre@kurilemu.de>
Sat, 11 Oct 2025 14:39:22 +0000 (16:39 +0200)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Sat, 11 Oct 2025 14:39:22 +0000 (16:39 +0200)
commitf9993ac646b9db202a2aa3d18444e0971b63e21f
tree9b6ef6137dbbee1e3011293b3d7546ae09f21447
parentae15cebc2035b77626e7d55757324b429c5e1f38
dbase_redo: Fix Valgrind-reported memory leak

Introduced by my (Álvaro's) commit 9e4f914b5eba, which was itself
backpatched to pg10, though only pg15 and up contain the problem
because of commit 9c08aea6a309.

This isn't a particularly significant leak, but given the fix is
trivial, we might as well backpatch to all branches where it applies, so
do that.

Author: Nathan Bossart <nathandbossart@gmail.com>
Reported-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/x4odfdlrwvsjawscnqsqjpofvauxslw7b4oyvxgt5owoyf4ysn@heafjusodrz7
src/backend/commands/dbcommands.c