From: Ken Raeburn Date: Mon, 22 Mar 2004 05:00:13 +0000 (+0000) Subject: * t_crc.c (timetest): Free 'block' before returning. X-Git-Tag: krb5-1.4-beta1~524 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2bd28db344c07046b11bc8b51e1e9bfee4169b6d;p=krb5.git * 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 --- diff --git a/src/lib/crypto/crc32/ChangeLog b/src/lib/crypto/crc32/ChangeLog index 637632a29..f6e4ee8fb 100644 --- a/src/lib/crypto/crc32/ChangeLog +++ b/src/lib/crypto/crc32/ChangeLog @@ -1,3 +1,8 @@ +2004-03-21 Ken Raeburn + + * t_crc.c (timetest): Free 'block' before returning. + (verify): Fix minor type error in call to gethexstr. + 2004-02-18 Ken Raeburn * 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 37315a526..256f9318f 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: