diff options
Diffstat (limited to 'crypto/ct')
-rw-r--r-- | crypto/ct/ct_log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/ct/ct_log.c b/crypto/ct/ct_log.c index 6fc21b7269..7298f1bfd4 100644 --- a/crypto/ct/ct_log.c +++ b/crypto/ct/ct_log.c @@ -182,7 +182,10 @@ static int ctlog_store_load_log(const char *log_name, int log_name_len, return 1; } - sk_CTLOG_push(load_ctx->log_store->logs, ct_log); + if (!sk_CTLOG_push(load_ctx->log_store->logs, ct_log)) { + CTLOG_free(ct_log); + return -1; + } return 1; } |