Fix memory leak when creating a sprinkler.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
NADAL Jean-Baptiste
2020-01-07 14:00:17 +01:00
parent 35f5319fa9
commit 87751f24b7
2 changed files with 47 additions and 32 deletions

View File

@@ -61,6 +61,9 @@ TEST("sprinkler - create set_state remove.")
ret = devices_manager_create(dm, kSprinklerEntry, root_node);
ASSERT_EQUAL_INT(ret, 0);
// ret = set_sprinkler_state(dm, 1, true);
// ASSERT_EQUAL_INT(ret, 0);
/* Clean the json object. */
json_object_put(root_node);