AJCORE-1056 Resolve issues detected by static analysis tool
AJCORE-1056 Resolve issues detected by static analysis tool

Change-Id: I221da0f76a2b710a46e50b7a19d854282c13fe93
Signed-off-by: Sheshambika Venkateshwaran <da32b3b3b1173d63b23a99c9246ebdac628a39a9@qce.qualcomm.com>

cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core,cybertanyellow/alljoyn-core