forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite0e569e
committed
Fix memory leak when initializing DH parameters in backend
When loading DH parameters used for the generation of ephemeral DH keysin the backend, the code has never bothered releasing the memory usedfor the DH information loaded from a file or from libpq's default. Thiscommit makes sure that the information is properly free()'d.Note that as SSL parameters can be reloaded, this can cause an accumulationof memory leaked. As the leak is minor, no backpatch is done.Reported-by: Dmitry UspenskiyDiscussion:https://postgr.es/m/16160-18367e56e9a28264@postgresql.org1 parent7c85be0 commite0e569e
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1015 | 1015 |
| |
1016 | 1016 |
| |
1017 | 1017 |
| |
| 1018 | + | |
1018 | 1019 |
| |
1019 | 1020 |
| |
| 1021 | + | |
| 1022 | + | |
1020 | 1023 |
| |
1021 | 1024 |
| |
1022 | 1025 |
| |
|
0 commit comments
Comments
(0)