diff options
author | tb <> | 2025-05-31 11:29:59 +0000 |
---|---|---|
committer | tb <> | 2025-05-31 11:29:59 +0000 |
commit | dd12fa86b5201ea39cbf2e5df31e9e650557bf19 (patch) | |
tree | 3d5ca05c6cb88af699c95e5d8907db13ea9374a6 /src/regress/lib/libcrypto/test | |
parent | 2aec1615f30ba76e1ce8dd1811d9a677df28675c (diff) | |
download | openbsd-dd12fa86b5201ea39cbf2e5df31e9e650557bf19.tar.gz openbsd-dd12fa86b5201ea39cbf2e5df31e9e650557bf19.tar.bz2 openbsd-dd12fa86b5201ea39cbf2e5df31e9e650557bf19.zip |
test.c: plug leak of tmp_file
Diffstat (limited to 'src/regress/lib/libcrypto/test')
-rw-r--r-- | src/regress/lib/libcrypto/test/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: test.c,v 1.2 2025/05/31 08:23:46 tb Exp $ */ | 1 | /* $OpenBSD: test.c,v 1.3 2025/05/31 11:29:59 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2025 Joshua Sing <joshua@joshuasing.dev> | 3 | * Copyright (c) 2025 Joshua Sing <joshua@joshuasing.dev> |
4 | * | 4 | * |
@@ -74,6 +74,7 @@ test_init(void) | |||
74 | err(1, "mkstemp"); | 74 | err(1, "mkstemp"); |
75 | 75 | ||
76 | unlink(tmp_file); | 76 | unlink(tmp_file); |
77 | free(tmp_file); | ||
77 | if ((t->out = fdopen(out_fd, "w+")) == NULL) | 78 | if ((t->out = fdopen(out_fd, "w+")) == NULL) |
78 | err(1, "fdopen"); | 79 | err(1, "fdopen"); |
79 | 80 | ||