Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize Jsonnet::vm_ field to nullptr #1144

Merged

Conversation

johnbartholomew
Copy link
Collaborator

The Jsonnet class constructor doesn't set up the VM; this is deferred until the user calls init(). However it's important for the vm_ field to itself be initialised to a known value. The Jsonnet destructor will attempt to destroy the VM only if the vm_ field is not null.

The Jsonnet class constructor doesn't set up the VM; this is deferred
until the user calls init(). However it's important for the vm_ field to
itself be initialised to a known value. The Jsonnet destructor will
attempt to destroy the VM only if the vm_ field is not null.
@johnbartholomew johnbartholomew merged commit 55eafec into google:master Mar 10, 2024
6 checks passed
@johnbartholomew johnbartholomew deleted the fix-vm-initialisation-cpp branch March 10, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant