aboutsummaryrefslogtreecommitdiff
path: root/math/dieharder/files/patch-libdieharder__countx.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/dieharder/files/patch-libdieharder__countx.c')
-rw-r--r--math/dieharder/files/patch-libdieharder__countx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/math/dieharder/files/patch-libdieharder__countx.c b/math/dieharder/files/patch-libdieharder__countx.c
new file mode 100644
index 000000000000..61aba224a498
--- /dev/null
+++ b/math/dieharder/files/patch-libdieharder__countx.c
@@ -0,0 +1,10 @@
+--- 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;
+ }
+ }