Commit 1f54fc2
authored
src: use automatic memory mgmt in SecretKeyGen
Avoid manual memory management (i.e., calling MallocOpenSSL). This
leaves less room for memory leaks and other bugs.
PR-URL: #44479
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 03553c5 commit 1f54fc2Copy full SHA for 1f54fc2
File tree
Expand file treeCollapse file tree
2 files changed
+9
-11
lines changedOpen diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
2 files changed
+9
-11
lines changedOpen diff view settings
Collapse file
src/crypto/crypto_keygen.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_keygen.cc+8-10Lines changed: 8 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
58 | | - |
| 57 | + |
59 | 58 | |
60 | 59 | |
61 | 60 | |
| ||
80 | 79 | |
81 | 80 | |
82 | 81 | |
83 | | - |
84 | | - |
| 82 | + |
| 83 | + |
| 84 | + |
85 | 85 | |
86 | 86 | |
87 | 87 | |
88 | | - |
89 | | - |
90 | | - |
91 | | - |
92 | | - |
| 88 | + |
| 89 | + |
| 90 | + |
93 | 91 | |
94 | | - |
| 92 | + |
95 | 93 | |
96 | 94 | |
97 | 95 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
201 | 201 | |
202 | 202 | |
203 | 203 | |
204 | | - |
| 204 | + |
205 | 205 | |
206 | 206 | |
207 | 207 | |
|
0 commit comments