Re: Plug minor memleak in pg_dump
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, gkokolatos@pm.me, pgsql-hackers@lists.postgresql.org
Date: 2022-02-09T02:56:46Z
Lists: pgsql-hackers
On Wed, Feb 02, 2022 at 10:06:13AM +0100, Daniel Gustafsson wrote: > The leak itself is clearly not something to worry about wrt memory pressure. > We do read into tmp and free it in other places in the same function though (as > you note above), so for code consistency alone this is worth doing IMO (and it > reduces the risk of static analyzers flagging this). > > Unless objected to I will go ahead with getting this committed. Looks like you forgot to apply that? -- Michael
Commits
-
Free temporary memory when reading TOC
- 1a29217a00a3 15.0 landed