Fix null ptr reference for freeReplyObject YAZ-773
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 20 Jun 2014 13:07:12 +0000 (15:07 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 20 Jun 2014 13:07:12 +0000 (15:07 +0200)
src/zoom-memcached.c

index fbdc886..f69089c 100644 (file)
@@ -272,7 +272,8 @@ void ZOOM_memcached_search(ZOOM_connection c, ZOOM_resultset resultset)
             ZOOM_connection_put_event(c, event);
             resultset->live_set = 1;
         }
-        freeReplyObject(reply);
+        if (reply)
+            freeReplyObject(reply);
     }
 #endif
 #if HAVE_LIBMEMCACHED