From: inoguchi Date: Thu, 6 Jan 2022 11:37:29 +0000 (+0000) Subject: Remove NULL check before free X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8b3b2859b0d61075b825c7920d5ba4dbc3cb230a;p=openbsd Remove NULL check before free --- diff --git a/usr.bin/openssl/cms.c b/usr.bin/openssl/cms.c index d453bcd139f..67ce15ab566 100644 --- a/usr.bin/openssl/cms.c +++ b/usr.bin/openssl/cms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms.c,v 1.24 2022/01/05 13:41:12 inoguchi Exp $ */ +/* $OpenBSD: cms.c,v 1.25 2022/01/06 11:37:29 inoguchi Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -1882,8 +1882,7 @@ receipt_request_print(BIO *out, CMS_ContentInfo *cms) BIO_puts(out, " Receipts To:\n"); gnames_stack_print(out, rto); } - if (rr != NULL) - CMS_ReceiptRequest_free(rr); + CMS_ReceiptRequest_free(rr); } }