diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-03 14:22:26 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-03 15:31:06 -0800 |
commit | f25220b2cfae015709afb68824f6442a2c9f2bef (patch) | |
tree | c6bacb6cfd2e712af4f6fe66ca121731844edd54 /libdeno/deno.h | |
parent | b39f4c146e7c13a7489e37b315a86e1a4a03a1a8 (diff) |
Fix test_cc memory leaks.
These were discovered using the LSAN.
http://dev.chromium.org/developers/testing/leaksanitizer
Diffstat (limited to 'libdeno/deno.h')
-rw-r--r-- | libdeno/deno.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdeno/deno.h b/libdeno/deno.h index 96d1298c1..4941709a9 100644 --- a/libdeno/deno.h +++ b/libdeno/deno.h @@ -34,6 +34,8 @@ Deno* deno_new(deno_buf snapshot, deno_buf shared, deno_recv_cb cb); Deno* deno_new_snapshotter(deno_buf shared, deno_recv_cb cb, const char* js_filename, const char* js_source, const char* source_map); +// Generate a snapshot. The resulting buf can be used with deno_new. +// The caller must free the returned data by calling delete[] buf.data_ptr. deno_buf deno_get_snapshot(Deno* d); void deno_delete(Deno* d); |