bug fix about related memory and security resource.
authorjaesick.shin <jaesick.shin@samsung.com>
Wed, 14 Dec 2016 08:30:55 +0000 (17:30 +0900)
committerUze Choi <uzchoi@samsung.com>
Thu, 15 Dec 2016 05:23:59 +0000 (05:23 +0000)
commit2950122adf57c0473fc372d2084d41af1acf91d4
tree66c3013dd02277b13d66595f95e54674ce40a7af
parent46590aee9cad56a28d344d76a2a1f8fb4493f43c
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>
service/notification/src/common/NSUtil.c
service/notification/src/provider/NSProviderSubscription.c
service/notification/src/provider/NSProviderSystem.c