Coverity: fix 272011 resource leak

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/19900)
This commit is contained in:
Pauli 2022-12-14 09:21:39 +11:00
parent 1cf2557063
commit a167e048a4
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {