Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
e5ffa2e9
Unverified
Commit
e5ffa2e9
authored
Aug 10, 2020
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2977 fix memory leak
parent
06add52d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ECDSACrypto.cpp
ECDSACrypto.cpp
+5
-0
ServerDataChecker.cpp
ServerDataChecker.cpp
+1
-1
No files found.
ECDSACrypto.cpp
View file @
e5ffa2e9
...
...
@@ -156,6 +156,11 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur
return
false
;
}
mpz_clear
(
msgMpz
);
signature_free
(
sig
);
domain_parameters_clear
(
curve
);
point_clear
(
publicKey
);
return
true
;
}
...
...
ServerDataChecker.cpp
View file @
e5ffa2e9
...
...
@@ -79,7 +79,7 @@ bool checkHex(const string& hex, const uint32_t sizeInBytes){
mpz_t
num
;
mpz_init
(
num
);
if
(
mpz_set_str
(
num
,
hex
.
c_str
(),
16
)
==
-
1
)
{
if
(
mpz_set_str
(
num
,
hex
.
c_str
(),
16
)
==
-
1
)
{
spdlog
::
error
(
"key is not hex {}"
,
hex
);
mpz_clear
(
num
);
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment