projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
85a66fe
)
Fix error causing crash in memslap
author
Brian Aker
<brian@tangent.org>
Wed, 3 Oct 2007 17:27:58 +0000
(10:27 -0700)
committer
Brian Aker
<brian@tangent.org>
Wed, 3 Oct 2007 17:27:58 +0000
(10:27 -0700)
src/generator.c
patch
|
blob
|
history
diff --git
a/src/generator.c
b/src/generator.c
index df04d348faf4e98fbe56a096211ed24e90b2549f..caeda9265d4836dcec0760f465a82ac06c90cd18 100644
(file)
--- a/
src/generator.c
+++ b/
src/generator.c
@@
-23,6
+23,9
@@
void pairs_free(pairs_st *pairs)
{
unsigned int x;
+ if (!pairs)
+ return;
+
/* We free until we hit the null pair we stores during creation */
for (x= 0; pairs[x].key; x++)
{