aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-07-16 20:06:37 +0000
committerSimon Tatham <anakin@pobox.com>2005-07-16 20:06:37 +0000
commit931a7ca45f4c247e974509922b879cc631a84ec9 (patch)
treec7f3e087f599e34ad1eb62de79dcf14797c575a1 /misc.c
parente7d6c0aa330f4801d66bef6e048307982ee60614 (diff)
downloadpuzzles-931a7ca45f4c247e974509922b879cc631a84ec9.zip
puzzles-931a7ca45f4c247e974509922b879cc631a84ec9.tar.gz
puzzles-931a7ca45f4c247e974509922b879cc631a84ec9.tar.bz2
puzzles-931a7ca45f4c247e974509922b879cc631a84ec9.tar.xz
Cleanups and memory leak fixes from James H.
[originally from svn r6099]
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 17ec48c..4e9e8c8 100644
--- a/misc.c
+++ b/misc.c
@@ -210,6 +210,7 @@ void shuffle(void *array, int nelts, int eltsize, random_state *rs)
memcpy(carray + eltsize * j, tmp, eltsize);
}
}
+ sfree(tmp);
}
/* vim: set shiftwidth=4 tabstop=8: */