- Notifications
You must be signed in to change notification settings - Fork5
Commit3355443
committed
Check version before allocating PQExpBuffer
In pg_dump.c:getEventTriggers, check what major version we are onbefore calling createPQExpBuffer() to avoid leaking that bit ofmemory.Leak discovered by the Coverity scanner.Back-patch to 9.3 where support for dumping event triggers wasadded.1 parent01337d4 commit3355443
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5746 | 5746 |
| |
5747 | 5747 |
| |
5748 | 5748 |
| |
5749 |
| - | |
| 5749 | + | |
5750 | 5750 |
| |
5751 | 5751 |
| |
5752 | 5752 |
| |
| |||
5766 | 5766 |
| |
5767 | 5767 |
| |
5768 | 5768 |
| |
| 5769 | + | |
| 5770 | + | |
5769 | 5771 |
| |
5770 | 5772 |
| |
5771 | 5773 |
| |
|
0 commit comments
Comments
(0)