diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-04-06 17:28:04 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-04-06 17:28:04 +0200 |
commit | 8d21ca2e3daf37d8afe7b678edb0aa2e47a468ef (patch) | |
tree | 19aff1cc7a9bb2b66c4f1e104970b49e45a6e284 | |
parent | b75bbfd9bd96ad8bb7174a768ae70cf3e8c5af7a (diff) |
fix a memory leak
Change-Id: I6822dfae11cacc49d14097f4bc43c3da5846b34c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-websock.c | 5 |
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 */ } |