forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8ad6a0c
committed
Plug memory leak in index_get_partition
The list of indexes was being leaked when asked for an index thatdoesn't have an index partition in the table partition. Not a commoncase admittedly --and in most cases where it occurs, caller throws anerror anyway-- but worth fixing for cleanliness and in case anythird-party code is calling this function.While at it, remove use of lfirst_oid() to obtain a value we alreadyhave.Author: Justin Pryzby <pryzby@telsasoft.com>Reviewed-by: Michael Paquier <michael@paquier.xyz>Discussion:https://postgr.es/m/20201105203606.GF22691@telsasoft.com1 parent8149e9f commit8ad6a0c
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
| 181 | + | |
181 | 182 |
| |
182 | 183 |
| |
183 | 184 |
| |
|
0 commit comments
Comments
(0)