Fixing possible segmentation fault error in open session response
message

Change-Id: Icdeea4a349d0267069c36e9f9107c76f71768bd2
Signed-off-by: TanelDettenborn <tanel.dettenborn@gmail.com>
Fixing memory leak in logic thread

Change-Id: Iae93226038ef7253834217855a2030880cc5f19c
Signed-off-by: TanelDettenborn <tanel.dettenborn@gmail.com>
Merge changes Iae932260,Icdeea4a3

* changes:
  Fixing memory leak in logic thread
  Fixing possible segmentation fault error in open session response message