- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitdc9a2d5

Álvaro Herrera
relcache: Avoid memory leak on tables with no CHECK constraints
As complained about by Valgrind, in commita379061 I failed torealize that I was causing rd_att->constr->check to become allocatedwhen no CHECK constraints exist; previously it'd remain NULL. (This wasmy bug, not the mentioned commit author's). Fix by making theallocation conditional, and set ->check to NULL if unallocated.Reported-by: Yasir <yasir.hussain.shah@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/202505082025.57ijx3qrbx7u@alvherre.pgsql1 parent7b2ad43 commitdc9a2d5
1 file changed
+7
-4
lines changedLines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4598 | 4598 |
| |
4599 | 4599 |
| |
4600 | 4600 |
| |
4601 |
| - | |
4602 |
| - | |
4603 |
| - | |
4604 |
| - | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
4605 | 4608 |
| |
4606 | 4609 |
| |
4607 | 4610 |
| |
|
0 commit comments
Comments
(0)