From dca5d6c7a7c7c70b20e409a9f24650a28a6f7998 Mon Sep 17 00:00:00 2001 From: Yufeng Wang Date: Tue, 18 Jun 2024 07:02:46 -0700 Subject: [PATCH] [Bridge Example] Fix dangling pointer when AddDeviceEndpoint failed (#33956) * Fix dandling pointer when AddDeviceEndpoint failed * Remove code never be excuted --- examples/bridge-app/linux/main.cpp | 1 + examples/fabric-bridge-app/linux/DeviceManager.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/examples/bridge-app/linux/main.cpp b/examples/bridge-app/linux/main.cpp index a894b5d0150ca6..699a87fa8c7938 100644 --- a/examples/bridge-app/linux/main.cpp +++ b/examples/bridge-app/linux/main.cpp @@ -278,6 +278,7 @@ int AddDeviceEndpoint(Device * dev, EmberAfEndpointType * ep, const Span