aboutsummaryrefslogtreecommitdiff
path: root/shared/serial_parse.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-07 22:07:57 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-07 22:07:57 +0100
commit456efce00c0ed85061352a38edddc0a3f39c7804 (patch)
treed2d7c0a821b5c9e07d4ca24dd34f48b4038d3ca2 /shared/serial_parse.c
parentaacaa86e621b18103f5ebf0bfe56f302d258c0e8 (diff)
change malloc and free to use macro's
Diffstat (limited to 'shared/serial_parse.c')
-rw-r--r--shared/serial_parse.c3
1 files changed, 2 insertions, 1 deletions
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 <string.h>
+#include <memory.h>
#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