From 812cd70e8faa4676473ea83942e09ce6cca54039 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 28 Jan 2016 09:13:08 +1100 Subject: [PATCH] Handle rare fail mode gracefully --- src/connector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index a0404e00..8c177498 100644 --- a/src/connector.c +++ b/src/connector.c @@ -924,7 +924,8 @@ static void send_client(cdata_t *cdata, const int64_t id, char *buf, int slen, u val = json_loads(buf, JSON_DISABLE_EOF_CHECK, NULL); if (unlikely(!val)) { LOGWARNING("No json in bkey appended message %s", buf); - goto out; + free(buf); + return; } json_append_bkeys(val, bkey, blen); free(buf);