From 3e775a79aa6ea82f93b2fc03f58ad261a17c73ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 12 May 2016 17:34:35 +0200 Subject: [PATCH] fix a typo bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: If622b8964d554469204f4df379680c2d258b4bff Signed-off-by: José Bollo --- src/afb-ws-json1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/afb-ws-json1.c b/src/afb-ws-json1.c index 67ce2d8e..b6397af6 100644 --- a/src/afb-ws-json1.c +++ b/src/afb-ws-json1.c @@ -343,7 +343,7 @@ static void wsreq_addref(struct afb_wsreq *wsreq) static void wsreq_unref(struct afb_wsreq *wsreq) { if (--wsreq->refcount == 0) { - struct afb_wsreq **prv = &wsreq->ws->requests; + struct afb_wsreq **prv = &wsreq->aws->requests; while(*prv != NULL) { if (*prv == wsreq) { *prv = wsreq->next; @@ -352,6 +352,7 @@ static void wsreq_unref(struct afb_wsreq *wsreq) prv = &(*prv)->next; } afb_context_disconnect(&wsreq->context); + json_object_put(wsreq->root); free(wsreq->text); free(wsreq); } -- 2.16.6