aboutsummaryrefslogtreecommitdiff
path: root/shared/serial_parse.c
diff options
context:
space:
mode:
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