From 5c1eb188e9cf6f0dd2e435a1f81938f258515edb Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 20 Jun 2014 15:07:12 +0200 Subject: [PATCH] Fix null ptr reference for freeReplyObject YAZ-773 --- src/zoom-memcached.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zoom-memcached.c b/src/zoom-memcached.c index fbdc886..f69089c 100644 --- a/src/zoom-memcached.c +++ b/src/zoom-memcached.c @@ -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 -- 1.7.10.4