diff options
| author | tb <> | 2025-05-31 11:29:59 +0000 |
|---|---|---|
| committer | tb <> | 2025-05-31 11:29:59 +0000 |
| commit | dd971c06a4c48aa08406cb752009ab11e3965548 (patch) | |
| tree | 3d5ca05c6cb88af699c95e5d8907db13ea9374a6 /src | |
| parent | 0f53fc6f455a6f22e1f49f8bcbd060f4ded56d49 (diff) | |
| download | openbsd-dd971c06a4c48aa08406cb752009ab11e3965548.tar.gz openbsd-dd971c06a4c48aa08406cb752009ab11e3965548.tar.bz2 openbsd-dd971c06a4c48aa08406cb752009ab11e3965548.zip | |
test.c: plug leak of tmp_file
Diffstat (limited to 'src')
| -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 | ||
