summaryrefslogtreecommitdiff
path: root/libdeno/deno.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-03 14:22:26 -0500
committerRyan Dahl <ry@tinyclouds.org>2018-12-03 15:31:06 -0800
commitf25220b2cfae015709afb68824f6442a2c9f2bef (patch)
treec6bacb6cfd2e712af4f6fe66ca121731844edd54 /libdeno/deno.h
parentb39f4c146e7c13a7489e37b315a86e1a4a03a1a8 (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.h2
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);