Commit 781ad96
src: use OnScopeLeave instead of multiple free()
This is not great either but it avoids having to call OPENSSL_free() in
more than one branch, thus reducing the risk of memory leaks.
PR-URL: #44852
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent c7ece46 commit 781ad96Copy full SHA for 781ad96
File tree
Expand file treeCollapse file tree
1 file changed
+3
-4
lines changedOpen diff view settings
Filter options
- src/crypto
Expand file treeCollapse file tree
1 file changed
+3
-4
lines changedOpen diff view settings
Collapse file
src/crypto/crypto_common.cc
Copy file name to clipboardExpand all lines: src/crypto/crypto_common.cc+3-4Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
992 | 992 | |
993 | 993 | |
994 | 994 | |
| 995 | + |
995 | 996 | |
996 | 997 | |
997 | 998 | |
998 | 999 | |
999 | 1000 | |
1000 | | - |
1001 | | - |
| 1001 | + |
| 1002 | + |
1002 | 1003 | |
1003 | 1004 | |
1004 | 1005 | |
1005 | | - |
1006 | | - |
1007 | 1006 | |
1008 | 1007 | |
1009 | 1008 | |
|
0 commit comments