From 456efce00c0ed85061352a38edddc0a3f39c7804 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 7 Jan 2023 22:07:57 +0100 Subject: change malloc and free to use macro's --- shared/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shared/protocol.c') diff --git a/shared/protocol.c b/shared/protocol.c index fcc0f41..943604c 100644 --- a/shared/protocol.c +++ b/shared/protocol.c @@ -15,7 +15,7 @@ size_t cd_cmd_sizeof(uint8_t data[CD_SERIAL_READ_BUFFER_SIZE], uint8_t data_leng cd_s_bin *copy = cd_bin_s_alloc(data_length, data); size_t length = (*CD_CMD_HANDLERS_SIZEOF[opcode])(copy); - free(copy); + CD_FREE(copy); return length; } -- cgit v1.2.3