Uninitialized payload pointer mey be freed 25/24825/5
authorMats Wichmann <mats@linux.com>
Sat, 21 Apr 2018 12:55:39 +0000 (06:55 -0600)
committerMats Wichmann <mats@linux.com>
Tue, 24 Apr 2018 23:41:23 +0000 (23:41 +0000)
commit1321675493ff2323503fefd0a47911b231de5576
treeeec9108bdc27af712d8c5a440a33590d950e751d
parent35c88ff0843718de206d15d90ca668ec3f1be744
Uninitialized payload pointer mey be freed

initialize response on declaration; don't free if pointer is null.

Change-Id: I9936a4f24c4ab6f8c322a2493ab5a1c303cd97cb
Signed-off-by: Mats Wichmann <mats@linux.com>
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp