Fix use after free crash

This commit is contained in:
WillyJL
2025-07-23 00:01:00 +02:00
parent 4d82f5cac7
commit a27d092d51
+1
View File
@@ -217,6 +217,7 @@ static void cli_vcp_internal_event_happened(FuriEventLoopObject* object, void* c
// disconnect our side of the pipe
pipe_detach_from_event_loop(cli_vcp->own_pipe);
pipe_free(cli_vcp->own_pipe);
cli_vcp->own_pipe = NULL;
// wait for shell to stop
cli_shell_join(cli_vcp->shell);