diff options
| author | HiFiPhile <[email protected]> | 2024-04-29 22:22:59 +0200 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2024-04-29 22:22:59 +0200 |
| commit | bf1540af4c3a57245b946c8622454c05e7fc098e (patch) | |
| tree | 9ed0573097d821696b8775e4826cd555b26bdb1b /lib/embedded-cli/embedded_cli.h | |
| parent | cba327fc384ae730287b0ab620d1f7ef50b0da3b (diff) | |
| parent | 1c04d5992a020aefe16ffb2acce62d84d4899395 (diff) | |
Merge branch 'master' of https://github.com/hathach/tinyusb into pr/2132
Diffstat (limited to 'lib/embedded-cli/embedded_cli.h')
| -rw-r--r-- | lib/embedded-cli/embedded_cli.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/embedded-cli/embedded_cli.h b/lib/embedded-cli/embedded_cli.h index 33354cd84..91c96f3a1 100644 --- a/lib/embedded-cli/embedded_cli.h +++ b/lib/embedded-cli/embedded_cli.h @@ -743,7 +743,7 @@ EmbeddedCli *embeddedCliNew(EmbeddedCliConfig *config) { bool allocated = false; if (config->cliBuffer == NULL) { - config->cliBuffer = (CLI_UINT *) malloc(totalSize); // malloc guarantees alignment. +// config->cliBuffer = (CLI_UINT *) malloc(totalSize); // malloc guarantees alignment. if (config->cliBuffer == NULL) return NULL; allocated = true; @@ -887,7 +887,7 @@ void embeddedCliFree(EmbeddedCli *cli) { PREPARE_IMPL(cli); if (IS_FLAG_SET(impl->flags, CLI_FLAG_ALLOCATED)) { // allocation is done in single call to malloc, so need only single free - free(cli); +// free(cli); } } |
