From 4b0822fa8e88ae07dda69b22d9c2542f33fc6f5f Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Sun, 12 Jan 2020 22:09:01 -0800 Subject: [PATCH] [ncp] remove dead code in SPINEL_PROP_STREAM_NET_INSECURE set handler (#4463) --- src/ncp/ncp_base_mtd.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ncp/ncp_base_mtd.cpp b/src/ncp/ncp_base_mtd.cpp index 1634b84fe..30b4cc600 100644 --- a/src/ncp/ncp_base_mtd.cpp +++ b/src/ncp/ncp_base_mtd.cpp @@ -2915,17 +2915,7 @@ template <> otError NcpBase::HandlePropertySet( error = otIp6Send(mInstance, message); - // `otIp6Send()` takes ownership of `message` (in both success or - // failure cases). `message` is set to NULL so it is not freed at - // exit. - message = NULL; - exit: - if (message != NULL) - { - otMessageFree(message); - } - if (error == OT_ERROR_NONE) { mInboundInsecureIpFrameCounter++;