From: Adam Dickmeiss Date: Fri, 20 Jun 2014 13:07:12 +0000 (+0200) Subject: Fix null ptr reference for freeReplyObject YAZ-773 X-Git-Tag: v5.2.1~5 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=5c1eb188e9cf6f0dd2e435a1f81938f258515edb;p=yaz-moved-to-github.git Fix null ptr reference for freeReplyObject YAZ-773 --- 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