netutils/webclient: duplicates memory allocation
authorJunyeon LEE <junyeon2.lee@samsung.com>
Tue, 23 May 2017 10:46:54 +0000 (19:46 +0900)
committerEunBong Song <eunb.song@samsung.com>
Tue, 11 Jul 2017 01:26:55 +0000 (10:26 +0900)
commit35958ea2c6fb5760ddf5a3d03d3a98b9d188b5f6
treedf7293d1b7b365bd90bef29b580eb84393e8c521
parent10739188ae5a27b3ab9d5e6bc86974d7b017efdf
netutils/webclient: duplicates memory allocation

This commit fixes memory duplicated allocation problem in
webclient. If tls handshake retried, response buffer would be
able to be initialized double or triple times but release once.
Now that wget_base checkes buffer existance before allocating
a response buffer

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