From dd12fa86b5201ea39cbf2e5df31e9e650557bf19 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 31 May 2025 11:29:59 +0000 Subject: test.c: plug leak of tmp_file --- src/regress/lib/libcrypto/test/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/test/test.c b/src/regress/lib/libcrypto/test/test.c index ca3149217a..8e25b004d2 100644 --- a/src/regress/lib/libcrypto/test/test.c +++ b/src/regress/lib/libcrypto/test/test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test.c,v 1.2 2025/05/31 08:23:46 tb Exp $ */ +/* $OpenBSD: test.c,v 1.3 2025/05/31 11:29:59 tb Exp $ */ /* * Copyright (c) 2025 Joshua Sing * @@ -74,6 +74,7 @@ test_init(void) err(1, "mkstemp"); unlink(tmp_file); + free(tmp_file); if ((t->out = fdopen(out_fd, "w+")) == NULL) err(1, "fdopen"); -- cgit v1.2.3-55-g6feb