diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-03-22 05:00:13 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-03-22 05:00:13 +0000 |
commit | 2bd28db344c07046b11bc8b51e1e9bfee4169b6d (patch) | |
tree | 8b0276a06dceb20acff621707550bfb7df1bebe3 | |
parent | 45e076609c6ac5e59e6ad26736f807cff3e27513 (diff) | |
download | krb5-2bd28db344c07046b11bc8b51e1e9bfee4169b6d.zip krb5-2bd28db344c07046b11bc8b51e1e9bfee4169b6d.tar.gz krb5-2bd28db344c07046b11bc8b51e1e9bfee4169b6d.tar.bz2 |
* t_crc.c (timetest): Free 'block' before returning.
(verify): Fix minor type error in call to gethexstr.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16197 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/crypto/crc32/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/crypto/crc32/t_crc.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/crypto/crc32/ChangeLog b/src/lib/crypto/crc32/ChangeLog index 637632a..f6e4ee8 100644 --- a/src/lib/crypto/crc32/ChangeLog +++ b/src/lib/crypto/crc32/ChangeLog @@ -1,3 +1,8 @@ +2004-03-21 Ken Raeburn <raeburn@mit.edu> + + * t_crc.c (timetest): Free 'block' before returning. + (verify): Fix minor type error in call to gethexstr. + 2004-02-18 Ken Raeburn <raeburn@mit.edu> * crc32.c: Use ANSI C style function definitions. diff --git a/src/lib/crypto/crc32/t_crc.c b/src/lib/crypto/crc32/t_crc.c index 37315a5..256f931 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: |