1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 17:29:36 +01:00
nix/src/libexpr-c
David McFarland 8d881ee3a3 nix_api_expr: ensure destructors are called for builder/state
I found this because of a test failure on cygwin in
nix_api_expr_test.nix_eval_state_lookup_path:

 'std::filesystem::__cxx11::filesystem_error'
   what():  filesystem error: cannot remove all: Device or resource busy
   [...]
   [.../my_state/db/db.sqlite]

LocalState was never getting destroyed due to a reference leak.  These
_free functions use an 'operator delete' which doesn't call the
destructor for the type.

Fixes: 309d55807c
2025-11-15 15:39:39 -04:00
..
.version Mesonify other external API 2024-07-02 09:23:24 -04:00
meson.build meson: Move asan-options to common 2025-10-11 16:08:35 +03:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_expr.cc nix_api_expr: ensure destructors are called for builder/state 2025-11-15 15:39:39 -04:00
nix_api_expr.h doc: Improve libexpr-c docs 2025-10-28 17:57:15 +01:00
nix_api_expr_internal.h More extern "C" for FFI 2025-09-03 22:50:42 +02:00
nix_api_external.cc More extern "C" for FFI 2025-09-03 22:50:42 +02:00
nix_api_external.h doc: Improve libexpr-c docs 2025-10-28 17:57:15 +01:00
nix_api_value.cc Use less c_str() in the evaluator, and other cleanups 2025-11-03 15:14:50 +03:00
nix_api_value.h doc: Improve libexpr-c docs 2025-10-28 17:57:15 +01:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00