Skip to content

Commit

Permalink
free output string in jsonnetfmt in the in-place no-diff path
Browse files Browse the repository at this point in the history
Makes the leak detector happy.
  • Loading branch information
johnbartholomew committed Mar 10, 2024
1 parent bb8ed3d commit d2f5e7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/jsonnetfmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ int main(int argc, const char **argv)
jsonnet_destroy(vm);
return EXIT_FAILURE;
}
} else {
jsonnet_realloc(vm, output, 0);
}
}
}
Expand Down

0 comments on commit d2f5e7c

Please sign in to comment.