netutils/webserver: fix potential memory leak
authorJunyeon LEE <junyeon2.lee@samsung.com>
Fri, 7 Apr 2017 03:48:07 +0000 (12:48 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:08 +0000 (12:02 +0900)
commitf5f55aab07ca6a2dfc1080a68c1b28960cdd1b2d
treee52613c868c93b574d356dd18b2e545bc45a63e5
parent6e231f65c63b300ba81ba00037ddeee9b6b4f574
netutils/webserver: fix potential memory leak

When webserver receives a websocket packet, it generates websocket
handler for processing the packet and inherits its own context. In this
process, mbedtls network file descriptor (fd) context was not inherited
properly and changed it. Because of this problem, the websocket client
handler thread cannot be released sometimes.

Change-Id: I9e70bd506a61091f442e8da8e18c62400b1bb211
Signed-off-by: Junyeon LEE <junyeon2.lee@samsung.com>
apps/netutils/webserver/http_client.c