Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
f2b3ac63
Commit
f2b3ac63
authored
5 years ago
by
Paul Beesley
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "Reduce the number of memory leaks in cert_create" into integration
parents
04fb777f
65ec13bc
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tools/cert_create/src/ext.c
+2
-1
tools/cert_create/src/ext.c
tools/cert_create/src/key.c
+2
-1
tools/cert_create/src/key.c
tools/cert_create/src/main.c
+1
-1
tools/cert_create/src/main.c
with
5 additions
and
3 deletions
+5
-3
tools/cert_create/src/ext.c
View file @
f2b3ac63
/*
* Copyright (c) 2015, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015
-2019
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -284,6 +284,7 @@ X509_EXTENSION *ext_new_key(int nid, int crit, EVP_PKEY *k)
ex
=
ext_new
(
nid
,
crit
,
p
,
sz
);
/* Clean up */
BIO_free
(
mem
);
OPENSSL_free
(
p
);
return
ex
;
...
...
This diff is collapsed.
Click to expand it.
tools/cert_create/src/key.c
View file @
f2b3ac63
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
@@ -73,6 +73,7 @@ static int key_create_rsa(key_t *key)
goto
err
;
}
BN_free
(
e
);
return
1
;
err:
RSA_free
(
rsa
);
...
...
This diff is collapsed.
Click to expand it.
tools/cert_create/src/main.c
View file @
f2b3ac63
/*
* Copyright (c) 2015-201
7
, ARM Limited and Contributors. All rights reserved.
* Copyright (c) 2015-201
9
, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help