diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-01-07 22:07:57 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-01-07 22:07:57 +0100 |
commit | 456efce00c0ed85061352a38edddc0a3f39c7804 (patch) | |
tree | d2d7c0a821b5c9e07d4ca24dd34f48b4038d3ca2 /shared/protocol.c | |
parent | aacaa86e621b18103f5ebf0bfe56f302d258c0e8 (diff) |
change malloc and free to use macro's
Diffstat (limited to 'shared/protocol.c')
-rw-r--r-- | shared/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |