* t_crc.c (timetest): Free 'block' before returning.
authorKen Raeburn <raeburn@mit.edu>
Mon, 22 Mar 2004 05:00:13 +0000 (05:00 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 22 Mar 2004 05:00:13 +0000 (05:00 +0000)
(verify): Fix minor type error in call to gethexstr.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16197 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/crc32/ChangeLog
src/lib/crypto/crc32/t_crc.c

index 637632a291f1feb5db7b48572b7dd87e4b007103..f6e4ee8fb09d518a2778385d994cce9bcf36b80b 100644 (file)
@@ -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.
index 37315a526ff88d9dd9c71432237d59d6bf72528c..256f9318f500c520d71a4619782f865d7dea64cf 100644 (file)
@@ -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: