Fix memory violation when removing observer by URI
Fix memory violation when removing observer by URI

Change-Id: I7f5232d11367ab53c70b30f0b1046814e0962970
Signed-off-by: Johannes Spangenberg <338c40bcbe006203d720ebf0396ea9713c95dd04@lynxtechnology.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19357
Reviewed-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>
Tested-by: Kishen Maloor <c62ddea3cd661a9268bff15f07fc2229cdc9ac02@intel.com>

iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained