From 594a3e5bd528b14c2de958e1784db1d31d8c64ab Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 24 Sep 2001 15:06:44 +0000 Subject: [PATCH] In case of memory problems, the va_start() wasn't cleaned with a va_end(). Noticed by Thomas Klausner . --- crypto/err/err.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/err/err.c b/crypto/err/err.c index be4a71ed06..94a2838bfa 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c @@ -784,7 +784,7 @@ void ERR_add_error_data(int num, ...) if (p == NULL) { OPENSSL_free(str); - return; + goto err; } else str=p; @@ -794,6 +794,7 @@ void ERR_add_error_data(int num, ...) } ERR_set_error_data(str,ERR_TXT_MALLOCED|ERR_TXT_STRING); +err: va_end(args); } -- 2.25.1