forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit198efe7
committed
Fix minor memory leak in pg_basebackup and pg_receivewal
The result of the query used to retrieve the WAL segment size from thebackend was not getting freed in two code paths. Both pg_basebackup andpg_receivewal exit immediately if a failure happened on this query, sothis was not an actual problem, but it could be an issue if this codegets used for other tools in different ways, be they future tools inthis code tree or external, existing, ones.Oversight in commitfc49e24, so backpatch down to 11.Author: Jie ZhangDiscussion:https://postgr.es/m/970ad9508461469b9450b64027842331@G08CNEXMBPEKD06.g08.fujitsu.localBackpatch-through: 111 parent5b736e9 commit198efe7
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
| 316 | + | |
316 | 317 |
| |
317 | 318 |
| |
318 | 319 |
| |
| 320 | + | |
| 321 | + | |
319 | 322 |
| |
320 | 323 |
| |
321 | 324 |
| |
| |||
334 | 337 |
| |
335 | 338 |
| |
336 | 339 |
| |
337 |
| - | |
338 | 340 |
| |
339 | 341 |
| |
340 | 342 |
| |
|
0 commit comments
Comments
(0)