Fixed a crash error caused on IP network get down
authorJaewook Jung <jw0213.jung@samsung.com>
Fri, 20 Jan 2017 03:15:54 +0000 (12:15 +0900)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Thu, 26 Jan 2017 21:47:31 +0000 (21:47 +0000)
commit8ba6a09abcba9d4ec45a918469e67dbfe9f752ca
tree5ab4df81d8dd501b1af719674fc2e68e9ab5fecf
parente578f623fc67626360fbe9b0c4ad2ad44fe13bef
Fixed a crash error caused on IP network get down

Because CAGetIPInterfaceInformation() allocates memory to
CAEndpoint_t at once, OICFree also should be called once.

Change-Id: I7cb85761e1d49e73d357928c77b364555d82c87f
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16621
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/connectivity/src/ip_adapter/caipadapter.c