summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/crc32/t_crc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/crc32/t_crc.c')
-rw-r--r--src/lib/crypto/crc32/t_crc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/crypto/crc32/t_crc.c b/src/lib/crypto/crc32/t_crc.c
index 37315a526f..256f9318f5 100644
--- a/src/lib/crypto/crc32/t_crc.c
+++ b/src/lib/crypto/crc32/t_crc.c
@@ -146,6 +146,7 @@ timetest(unsigned int nblk, unsigned int blksiz)
(long)(after.tms_cutime - before.tms_cutime),
(long)(after.tms_cstime - before.tms_cstime));
#endif
+ free(block);
}
static void gethexstr(char *data, size_t *outlen, unsigned char *outbuf,
@@ -187,7 +188,7 @@ verify(void)
break;
case HEX:
typestr = "HEX";
- gethexstr(trial.data, &len, &buf, 4);
+ gethexstr(trial.data, &len, buf, 4);
mit_crc32(buf, len, &cksum);
break;
default: