From 3bec8dca1ca108a9c64af36c768eda58bdec2d95 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 Feb 2023 14:35:01 -0700 Subject: [PATCH] [wasm-sample] Free blob data for now --- src/wasm-sample/shape.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wasm-sample/shape.c b/src/wasm-sample/shape.c index a95c80a44..480701771 100644 --- a/src/wasm-sample/shape.c +++ b/src/wasm-sample/shape.c @@ -2,6 +2,8 @@ #include +void free (void*); + void debugprint1 (char *s, int32_t); void debugprint2 (char *s, int32_t, int32_t); @@ -14,6 +16,8 @@ shape (font_t font, buffer_t buffer) debugprint1 ("cmap length", blob.length); + free (blob.data); + buffer_contents_t contents = buffer_copy_contents (buffer); debugprint1 ("buffer length", contents.length);