forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0e033f5
committed
Fix a memory leak in dumping functions with TRANSFORMs
The gneration of the dump clause for functions with TRANSFORMcalls would leak the memory for holding the result of the Oidarray parsing. Fix by freeing.While in there, switch to using pg_malloc instead of palloc inorder to be consistent with the rest of the file.Author: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>Reviewed-by: Daniel Gustafsson <daniel@yesql.se>Discussion:https://postgr.es/m/baf1ae4511288e5b421f41e79a3df1a0@postgrespro.ru1 parent9df2a4b commit0e033f5
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12531 | 12531 |
| |
12532 | 12532 |
| |
12533 | 12533 |
| |
12534 |
| - | |
| 12534 | + | |
12535 | 12535 |
| |
12536 | 12536 |
| |
12537 | 12537 |
| |
| |||
12543 | 12543 |
| |
12544 | 12544 |
| |
12545 | 12545 |
| |
| 12546 | + | |
| 12547 | + | |
12546 | 12548 |
| |
12547 | 12549 |
| |
12548 | 12550 |
| |
|
0 commit comments
Comments
(0)