mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 21:46:01 +01:00
nix_api_expr: add error handling to incref, decref
This commit is contained in:
parent
ada2af4f88
commit
866558af34
4 changed files with 43 additions and 26 deletions
|
|
@ -178,7 +178,7 @@ ExternalValue *nix_create_external_value(nix_c_context *context,
|
|||
(GC)
|
||||
#endif
|
||||
NixCExternalValue(*desc, v);
|
||||
nix_gc_incref(ret);
|
||||
nix_gc_incref(nullptr, ret);
|
||||
return (ExternalValue *)ret;
|
||||
}
|
||||
NIXC_CATCH_ERRS_NULL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue