aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-09 14:15:23 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-09 14:15:23 +0200
commit960eb7a48488b8c183e4462fb26e36a06e69d3b5 (patch)
treedc418bdd7a11d014dd15fd05f822c889c2014206
parent4256f76f127ff982415e875567da08408087f326 (diff)
better cleanup on error
Change-Id: Icb78637f4e7ed905ae8df4bf2e1ba1e0d176dfa2 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/afb-ws-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-ws-json.c b/src/afb-ws-json.c
index 4393d093..4bdda7ef 100644
--- a/src/afb-ws-json.c
+++ b/src/afb-ws-json.c
@@ -90,7 +90,7 @@ struct afb_ws_json *afb_ws_json_create(int fd, struct AFB_clientCtx *context, vo
return result;
error5:
- /* TODO */
+ afb_ws_destroy(result->ws);
error4:
json_tokener_free(result->tokener);
error3: