projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2b609
)
coverity 1462566 Resource leak
author
Pauli
<paul.dale@oracle.com>
Sun, 26 Apr 2020 23:06:14 +0000
(09:06 +1000)
committer
Pauli
<paul.dale@oracle.com>
Thu, 30 Apr 2020 10:21:32 +0000
(20:21 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
crypto/ts/ts_rsp_sign.c
patch
|
blob
|
history
diff --git
a/crypto/ts/ts_rsp_sign.c
b/crypto/ts/ts_rsp_sign.c
index ba69cbece29234fdaf146a1daa24aab1b0e89885..e1f187995b4456454d2573870022cbf4b649ff29 100644
(file)
--- a/
crypto/ts/ts_rsp_sign.c
+++ b/
crypto/ts/ts_rsp_sign.c
@@
-57,6
+57,7
@@
static ASN1_INTEGER *def_serial_cb(struct TS_resp_ctx *ctx, void *data)
TSerr(TS_F_DEF_SERIAL_CB, ERR_R_MALLOC_FAILURE);
TS_RESP_CTX_set_status_info(ctx, TS_STATUS_REJECTION,
"Error during serial number generation.");
+ ASN1_INTEGER_free(serial);
return NULL;
}