forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb362d14
committed
Fix memory leaks in error reporting with LOG level
When loglevel is set to LOG, allocated strings used in the errormessage would leak. Fix by explicitly pfreeing them.Author: Ranier Vilela <ranier.vf@gmail.com>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/CAEudQAqMeE0AHcOsOzZx51Z0eiFJAjhBPRFt+Bxi3ETXWen7ig@mail.gmail.com1 parentab4d7a3 commitb362d14
2 files changed
+7
-1
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
| 128 | + | |
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
| 132 | + | |
131 | 133 |
| |
132 | 134 |
| |
133 | 135 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
| 88 | + | |
| 89 | + | |
88 | 90 |
| |
| 91 | + | |
89 | 92 |
| |
90 | 93 |
| |
91 | 94 |
| |
92 | 95 |
| |
93 |
| - | |
| 96 | + | |
| 97 | + | |
94 | 98 |
| |
95 | 99 |
| |
96 | 100 |
| |
|
0 commit comments
Comments
(0)