[IOT-1464] Set NULL after deleting dataQueue of queueing thread
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Mon, 24 Oct 2016 04:39:29 +0000 (13:39 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 24 Oct 2016 09:36:23 +0000 (09:36 +0000)
Set NULL after deleting dataQueue of queueing thread

Change-Id: Ia32df8a988503f4ef4bd01f51005102cddc1a301
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13591
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/caqueueingthread.c

index e034161..1542098 100644 (file)
@@ -269,6 +269,7 @@ CAResult_t CAQueueingThreadDestroy(CAQueueingThread_t *thread)
     }
 
     u_queue_delete(thread->dataQueue);
+    thread->dataQueue = NULL;
 
     return CA_STATUS_OK;
 }