From 7cdaca9a5731c6abec2dba581d916daee9109d40 Mon Sep 17 00:00:00 2001 From: Somin Kim Date: Tue, 26 Sep 2017 15:29:58 +0900 Subject: [PATCH] [testsuite] assign null after destroy handle Change-Id: I2571fc0bde3391e2b24382aa57e834d358e4fccd Signed-off-by: Somin Kim --- testsuite/src/default/DefaultTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testsuite/src/default/DefaultTest.cpp b/testsuite/src/default/DefaultTest.cpp index da82829..3a7d859 100644 --- a/testsuite/src/default/DefaultTest.cpp +++ b/testsuite/src/default/DefaultTest.cpp @@ -51,6 +51,9 @@ bool __verify_context_history() context_history_list_destroy(queryResult); context_history_filter_destroy(filter); context_history_destroy(history); + queryResult = NULL; + filter = NULL; + history = NULL; ASSERT(error == CONTEXT_HISTORY_ERROR_NONE || error == CONTEXT_HISTORY_ERROR_NO_DATA); -- 2.7.4