[JIRA-1134] Fix mem leak in HandleVirtualResource
authorHabib Virji <habib.virji@samsung.com>
Tue, 8 Nov 2016 16:43:48 +0000 (16:43 +0000)
committerHabib Virji <habib.virji@samsung.com>
Thu, 10 Nov 2016 10:30:02 +0000 (10:30 +0000)
commit02ec9d7a594a13827c844d5e205927e6b7afab7d
tree63079bce7c5fa8728c3288990393d7d8b97de86b
parent577bfabea7f1c10d28c8fefaaa42ca63f2c47896
[JIRA-1134] Fix mem leak in HandleVirtualResource

- VERIFY_NON_NULL to exit by cleaning the mem already allocated.
- InterfaceQuery which wa being assigned is not done, and instead if no interfaceQuery it is considered as oic.if.ll.
- Moved out rd resource search out of function,
- Baseline information handling has been updated to be handled separately.

https://jira.iotivity.org/browse/IOT-1134

Change-Id: Ie894284e4c67a7bbd4bbaa52801416a0c8dab778
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9279
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: David Antler <david.a.antler@intel.com>
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/src/ocstack.c