summaryrefslogtreecommitdiff
path: root/lib/embedded-cli
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-05-07 12:32:28 +0200
committerGitHub <[email protected]>2024-05-07 12:32:28 +0200
commit4abdfc10f5a4cca19a614133655c64fec5752eb0 (patch)
treef79aa084a42438667b5e26b588a6f794c9ad1608 /lib/embedded-cli
parent798ff807b3361a5859945cb23c3d0fd7d1a5679f (diff)
parente5b6f93df35d7ac413ca405e67a6c9d8c79b680d (diff)
Merge branch 'master' into remove-tud_network_link_state_cb
Diffstat (limited to 'lib/embedded-cli')
-rw-r--r--lib/embedded-cli/embedded_cli.h4
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);
}
}