summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsangwan.kwon <sangwan.kwon@samsung.com>2017-03-06 09:28:55 (GMT)
committersangwan.kwon <sangwan.kwon@samsung.com>2017-03-09 04:09:56 (GMT)
commita4f0c18189ec1a3699434a187f0e1f6d5ed19653 (patch)
tree7991f03dcd8461e89c09f61ff247ab77007a0f63
parentc8d86331b65b3c290e7a1b3de7092d3a5a00b468 (diff)
downloadxmlsec1-a4f0c18189ec1a3699434a187f0e1f6d5ed19653.zip
xmlsec1-a4f0c18189ec1a3699434a187f0e1f6d5ed19653.tar.gz
xmlsec1-a4f0c18189ec1a3699434a187f0e1f6d5ed19653.tar.bz2
Fix svace defectsrefs/changes/46/118146/1
Change-Id: I2a3237366c94633f3dc73f826915194d5f79c8b1 Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com> (cherry picked from commit 6103576a64cb888f9de8f8867d3b7cdf6f88f500)
-rw-r--r--src/openssl/signatures.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/openssl/signatures.c b/src/openssl/signatures.c
index 5cb6f7b..d10204d 100644
--- a/src/openssl/signatures.c
+++ b/src/openssl/signatures.c
@@ -726,6 +726,12 @@ done:
if(dsaKey != NULL) {
DSA_free(dsaKey);
}
+ if(rr != NULL) {
+ BN_free(rr);
+ }
+ if(ss != NULL) {
+ BN_free(ss);
+ }
/* done */
return(res);
@@ -855,6 +861,12 @@ done:
if(dsaKey != NULL) {
DSA_free(dsaKey);
}
+ if(rr != NULL) {
+ BN_free(rr);
+ }
+ if(ss != NULL) {
+ BN_free(ss);
+ }
/* done */
return(res);
@@ -1142,6 +1154,12 @@ done:
if(ecKey != NULL) {
EC_KEY_free(ecKey);
}
+ if(rr != NULL) {
+ BN_free(rr);
+ }
+ if(ss != NULL) {
+ BN_free(ss);
+ }
/* done */
return(res);
@@ -1262,6 +1280,12 @@ done:
if(ecKey != NULL) {
EC_KEY_free(ecKey);
}
+ if(rr != NULL) {
+ BN_free(rr);
+ }
+ if(ss != NULL) {
+ BN_free(ss);
+ }
/* done */
return(res);