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/serial_parse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shared/serial_parse.c') diff --git a/shared/serial_parse.c b/shared/serial_parse.c index bfc374a..1397918 100644 --- a/shared/serial_parse.c +++ b/shared/serial_parse.c @@ -1,4 +1,5 @@ #include +#include #include "consts.h" #include "serial_parse.h" @@ -52,7 +53,7 @@ void cd_cmd_handle(uint8_t data[CD_SERIAL_READ_BUFFER_SIZE], uint8_t data_length if (handler == NULL) return; (*handler)(copy); - free(copy); + CD_FREE(copy); } #ifdef __cplusplus -- cgit v1.2.3