Fix very minor memory leaks in psql's command.c.
Tom Lane <tgl@sss.pgh.pa.us>
Fix very minor memory leaks in psql's command.c. \drds leaked its second pattern argument if any, and \connect leaked any empty-string or "-" arguments. These are old bugs, but it's hard to imagine any real use-case where the leaks could amount to anything meaningful, so not bothering with a back-patch. Daniel Gustafsson and Tom Lane Discussion: https://postgr.es/m/3641F19B-336A-431A-86CE-A80562505C5E@yesql.se
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/command.c | modified | +8 −0 |
Discussion
- psql's \d and \dt are sending their complaints to different output files 13 messages · 2017-06-19 → 2017-07-28