Diff between 7665fb5d943c3910465123fc7b08922e44adb7a2 and 0bf9e6453ed5175dea94a8fc88c6b74f99999d30

Changed Files

File Additions Deletions Status
src/shared/shell.c +3 -1 modified

Full Patch

diff --git a/src/shared/shell.c b/src/shared/shell.c
index 68499b4..7bcfcff 100644
--- a/src/shared/shell.c
+++ b/src/shared/shell.c
@@ -4,7 +4,7 @@
  *  BlueZ - Bluetooth protocol stack for Linux
  *
  *  Copyright (C) 2017  Intel Corporation. All rights reserved.
- *
+ *  Copyright 2024 NXP
  *
  */
 
@@ -1362,7 +1362,9 @@ void bt_shell_cleanup(void)
 	rl_cleanup();
 
 	queue_destroy(data.inputs, NULL);
+	data.inputs = NULL;
 	queue_destroy(data.queue, free);
+	data.queue = NULL;
 	queue_destroy(data.prompts, prompt_free);
 	data.prompts = NULL;