m4: fix output of sphinx-build version check
[awesomized/libmemcached] / libmemcachedprotocol / handler.c
index 59b461f6aa083b286c8e6e619ab8382e352437f5..afd708652c245e9decb61be8ce9ba757c8b41703 100644 (file)
@@ -46,6 +46,9 @@
 #include <ctype.h>
 #include <stdio.h>
 
+#include <sys/types.h>
+#include <sys/socket.h>
+
 /*
 ** **********************************************************************
 ** INTERNAL INTERFACE
@@ -318,6 +321,7 @@ struct memcached_protocol_st *memcached_protocol_create_instance(void)
     {
       free(ret->input_buffer);
       free(ret);
+      ret= NULL;
     }
   }