Skip to content

Commit d2f5e7c

Browse files
free output string in jsonnetfmt in the in-place no-diff path
Makes the leak detector happy.
1 parent bb8ed3d commit d2f5e7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/jsonnetfmt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ int main(int argc, const char **argv)
282282
jsonnet_destroy(vm);
283283
return EXIT_FAILURE;
284284
}
285+
} else {
286+
jsonnet_realloc(vm, output, 0);
285287
}
286288
}
287289
}

0 commit comments

Comments
 (0)