bug fix about related memory and security resource.
1. I did not copy the memory,
but I freed the memory while I was using it.
2. The initial value of the securityResource variable
used by the provider was wrong.
second patch include,
1. change OICCalloc to OICMalloc.
2. removed the initialization code from the previous commit,
so added it again.
Change-Id: I189eb720785a74e39955640484e795170be3b010
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15593
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>