[IOT-1675] Added Function of OICSafeFree.
authorJaehong Jo <jaehong.jo@samsung.com>
Thu, 8 Dec 2016 05:04:57 +0000 (14:04 +0900)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 30 Dec 2016 18:17:16 +0000 (18:17 +0000)
commitd4f573ea1f2a0089fb7d53980ac39c39673391cb
tree9e73609961960d048faf01abfe43c60492420747
parentd82a245cd1b6673edeaa4aae3fc204300e6da2b9
[IOT-1675] Added Function of OICSafeFree.

Previous function just free and do not set to null.
So the caller needs to be set to null.
If use new function, do not need this operation.
So it can avoid use the dangering point.

Change-Id: I067220d9410f23d0b4ba45075f836ec528d83fbf
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15251
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/c_common/oic_malloc/include/oic_malloc.h
resource/c_common/oic_malloc/src/oic_malloc.c
resource/c_common/oic_malloc/test/linux/oic_malloc_tests.cpp