freebsd-ports/math/dieharder/files/patch-libdieharder__countx.c

11 lines
340 B
C
Raw Normal View History

--- libdieharder/countx.c.orig 2009-12-27 13:35:32.000000000 -0500
+++ libdieharder/countx.c 2009-12-27 13:36:18.000000000 -0500
@@ -219,6 +219,7 @@
for (i=0; i<=MAXBITS; ++i) {
if (ftab[i] > BUCKETS) {
fprintf(stderr, "ftab[%lu]=%lu needs a bigger LOGBUCKETS\n", i, ftab[i]);
+ free(data);
return 1;
}
}