1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 21:01:16 +02:00

nix_api_expr: add error handling to incref, decref

This commit is contained in:
Yorick van Pelt 2023-07-28 16:21:29 +02:00 committed by José Luis Lafuente
parent ada2af4f88
commit 866558af34
No known key found for this signature in database
GPG key ID: 8A3455EBE455489A
4 changed files with 43 additions and 26 deletions

View file

@ -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