summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-websock.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c
index 797724ce..cff995f2 100644
--- a/src/afb-websock.c
+++ b/src/afb-websock.c
@@ -27,10 +27,6 @@
#include <json.h>
#include <openssl/sha.h>
-/*
-#include <openssl/bio.h>
-#include <openssl/evp.h>
-*/
#include "websock.h"
@@ -509,6 +505,7 @@ static void wsreq_reply(struct afb_wsreq *wsreq, int retcode, const char *status
/* emits the reply */
message = json_object_to_json_string(reply);
websock_text(wsreq->aws->ws, message, strlen(message));
+ json_object_put(reply);
/* TODO eliminates the wsreq */
}