Commit e242f3d
BUG/MINOR: ssl_sock: Fix memory leak when disabling compression
according to manpage:
sk_TYPE_zero() sets the number of elements in sk to zero. It
does not free sk so after this call sk is still valid.
so we need to free all elements
[wt: seems like it has been there forever and should be backported
to all stable branches]1 parent 4438c60 commit e242f3d
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9702 | 9702 | | |
9703 | 9703 | | |
9704 | 9704 | | |
| 9705 | + | |
9705 | 9706 | | |
9706 | 9707 | | |
9707 | 9708 | | |
| |||
9719 | 9720 | | |
9720 | 9721 | | |
9721 | 9722 | | |
9722 | | - | |
| 9723 | + | |
| 9724 | + | |
| 9725 | + | |
| 9726 | + | |
| 9727 | + | |
9723 | 9728 | | |
9724 | 9729 | | |
9725 | 9730 | | |
| |||
0 commit comments