Browse Source

Fix memory leak in unit test

Stefan Profanter 8 years ago
parent
commit
a5ddf9c236
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/check_server_userspace.c

+ 2 - 0
tests/check_server_userspace.c

@@ -14,6 +14,8 @@ START_TEST(Server_addNamespace_ShallWork)
     UA_UInt16 b = UA_Server_addNamespace(server, "http://nameOfNamespace");
     UA_UInt16 c = UA_Server_addNamespace(server, "http://nameOfNamespace2");
 
+	UA_Server_delete(server);
+
     ck_assert_uint_gt(a, 0);
     ck_assert_uint_eq(a,b);
     ck_assert_uint_ne(a,c);