X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fgenerator.c;h=caeda9265d4836dcec0760f465a82ac06c90cd18;hb=99803a66dda300ea7a5741fe8aae852e8b746366;hp=df04d348faf4e98fbe56a096211ed24e90b2549f;hpb=320638630f5a35ddfc4fe0d571b24016a7a80de7;p=awesomized%2Flibmemcached 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++) {