[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/03: test_sha1: minor fixes
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/03: test_sha1: minor fixes |
Date: |
Sun, 16 May 2021 20:56:27 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit cea71d6e5230d01156d6945f0c2cb8e26f4095c4
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun May 16 21:23:07 2021 +0300
test_sha1: minor fixes
---
src/microhttpd/test_sha1.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/test_sha1.c b/src/microhttpd/test_sha1.c
index 276c7838..d82a2678 100644
--- a/src/microhttpd/test_sha1.c
+++ b/src/microhttpd/test_sha1.c
@@ -373,7 +373,7 @@ test_unaligned (void)
buf = malloc (tdata->bin_l.len + MAX_OFFSET);
digest_buf = malloc (SHA1_DIGEST_SIZE + MAX_OFFSET);
if ((NULL == buf) || (NULL == digest_buf))
- _exit (99);
+ exit (99);
for (offset = MAX_OFFSET; offset >= 1; --offset)
{
@@ -392,6 +392,7 @@ test_unaligned (void)
num_failed += check_result (__FUNCTION__, MAX_OFFSET - offset,
unaligned_digest, tdata->digest);
}
+ free (digest_buf);
free (buf);
return num_failed;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.