fix tiny memory leak
authorJosé Bollo <jose.bollo@iot.bzh>
Sun, 7 Aug 2016 06:05:07 +0000 (08:05 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 7 Aug 2016 06:05:55 +0000 (08:05 +0200)
Change-Id: I8183da55b6afb0e2d3035ebe8cf371b181ec4257
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-api-ws.c

index 663170e..b4c00df 100644 (file)
@@ -797,6 +797,7 @@ static void api_ws_client_on_binary(void *closure, char *data, size_t size)
                        break;
                }
        }
+       free(data);
 }
 
 /* on call, propagate it to the ws service */