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/ihex.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd/sbc_harness/ihex.c') diff --git a/cmd/sbc_harness/ihex.c b/cmd/sbc_harness/ihex.c index 565ad16..5a7f6d5 100644 --- a/cmd/sbc_harness/ihex.c +++ b/cmd/sbc_harness/ihex.c @@ -15,6 +15,7 @@ #include "ihex.h" LO_IMPLEMENTATION_C(io_writer, struct ihex_decoder, ihex_decoder); +LO_IMPLEMENTATION_C(io_closer, struct ihex_decoder, ihex_decoder); enum ihex_record_type { /* [U]SBA: [Upper] Segment Base Address : SBA = USBA<< 4 */ @@ -223,3 +224,8 @@ size_t_and_error ihex_decoder_writev(struct ihex_decoder *self, const struct iov } return ERROR_AND(size_t, total, ERROR_NULL); } + +error ihex_decoder_close(struct ihex_decoder *self) { + error_cleanup(&self->sticky_err); + return ERROR_NULL; +} -- cgit v1.2.3-2-g168b