mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
c-api: fix a few memory leaks
This commit is contained in:
parent
47e23811ff
commit
79b019ec4f
3 changed files with 9 additions and 1 deletions
|
@ -43,6 +43,9 @@ TEST_F(nix_api_store_test, nix_api_init_global_getFlake_exists)
|
|||
ASSERT_NE(nullptr, value);
|
||||
|
||||
nix_err err = nix_expr_eval_from_string(ctx, state, "builtins.getFlake", ".", value);
|
||||
|
||||
nix_state_free(state);
|
||||
|
||||
assert_ctx_ok();
|
||||
ASSERT_EQ(NIX_OK, err);
|
||||
ASSERT_EQ(NIX_TYPE_FUNCTION, nix_get_type(ctx, value));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue