From ed116aceb41a80a212bb67e49716bbd40d88a3a1 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 12 Jun 2025 13:08:48 -0600 Subject: /harness/flash.bin: Fix a memory leak --- cmd/sbc_harness/fs_harness_flash_bin.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/sbc_harness/fs_harness_flash_bin.c') diff --git a/cmd/sbc_harness/fs_harness_flash_bin.c b/cmd/sbc_harness/fs_harness_flash_bin.c index 6ae9e77..510a247 100644 --- a/cmd/sbc_harness/fs_harness_flash_bin.c +++ b/cmd/sbc_harness/fs_harness_flash_bin.c @@ -284,6 +284,9 @@ static void flash_file_iofree(struct flash_file *self) { error err = flashio_close(&self->io); assert(ERROR_IS_NULL(err)); + + err = ihex_decoder_close(&self->ihex); + assert(ERROR_IS_NULL(err)); } static error flash_file_pread(struct flash_file *self, struct lib9p_srv_ctx *ctx, -- cgit v1.2.3-2-g168b