forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit992cba9
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.Back-patch ofe0e569e. We originally thought the leak was minor andnot worth back-patching, but Jelte Fennema pointed out that repeatedSIGHUP's can result in very serious bloat of the postmaster, which isthen multiplied by being duplicated into eadh forked child.Back-patch to v10; the code looked different beforec0a15e0,and didn't have a leak in the actually-live code paths.Michael PaquierDiscussion:https://postgr.es/m/16160-18367e56e9a28264@postgresql.org1 parent4eca51d commit992cba9
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1029 | 1029 |
| |
1030 | 1030 |
| |
1031 | 1031 |
| |
| 1032 | + | |
1032 | 1033 |
| |
1033 | 1034 |
| |
| 1035 | + | |
| 1036 | + | |
1034 | 1037 |
| |
1035 | 1038 |
| |
1036 | 1039 |
| |
|
0 commit comments
Comments
(0)