From: Brian Aker Date: Wed, 3 Oct 2007 17:27:58 +0000 (-0700) Subject: Fix error causing crash in memslap X-Git-Tag: 0.4~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d5afe6f9c8ce6c26d5721d611718cd5f8e75bb25;p=awesomized%2Flibmemcached Fix error causing crash in memslap --- diff --git a/src/generator.c b/src/generator.c index df04d348..caeda926 100644 --- 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++) {