Commit 152d24f
committed
Fix minor leak in pg_dump
Move allocation to after we check the remote server version, to avoid
a possible, very minor, memory leak. This makes us more consistent
throughout as most places in pg_dump are done in the same way (due, in
part, to previous fixes like this).
Spotted by the Coverity scanner.1 parent a7e5f7b commit 152d24f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3602 | 3602 | | |
3603 | 3603 | | |
3604 | 3604 | | |
3605 | | - | |
| 3605 | + | |
3606 | 3606 | | |
3607 | 3607 | | |
3608 | 3608 | | |
| |||
3617 | 3617 | | |
3618 | 3618 | | |
3619 | 3619 | | |
| 3620 | + | |
| 3621 | + | |
3620 | 3622 | | |
3621 | 3623 | | |
3622 | 3624 | | |
| |||
0 commit comments