This patch includes all of the callback work for setting clone() and cleanup()
[awesomized/libmemcached] / src / generator.c
index df04d348faf4e98fbe56a096211ed24e90b2549f..caeda9265d4836dcec0760f465a82ac06c90cd18 100644 (file)
@@ -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++)
   {