[fix] Free option context in gtest
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Wed, 14 Feb 2024 08:49:48 +0000 (17:49 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 19 Feb 2024 04:54:48 +0000 (13:54 +0900)
- Call g_option_context_free in unittest_latency

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
tests/nnstreamer_latency/unittest_latency.cc

index 09d0a97..4728599 100644 (file)
@@ -269,6 +269,8 @@ main (int argc, char **argv)
     g_clear_error (&error);
   }
 
+  g_option_context_free (optionctx);
+
   try {
     result = RUN_ALL_TESTS ();
   } catch (...) {