From: Pauli Date: Tue, 13 Dec 2022 22:21:39 +0000 (+1100) Subject: Coverity: fix 272011 resource leak X-Git-Tag: openssl-3.2.0-alpha1~1583 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a167e048a40151f9884014680c9a765ef79c3b44;p=thirdparty%2Fopenssl.git Coverity: fix 272011 resource leak Reviewed-by: Tomas Mraz Reviewed-by: Nicola Tuveri Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/19900) --- diff --git a/apps/speed.c b/apps/speed.c index aace0c57122..fdc69152cfc 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -3529,6 +3529,7 @@ static int do_multi(int multi, int size_num) if ((f = fdopen(fds[n], "r")) == NULL) { BIO_printf(bio_err, "fdopen failure with 0x%x\n", errno); + OPENSSL_free(fds); return 1; } while (fgets(buf, sizeof(buf), f)) {