From 677543fdb682e8b99d75d51c21c4da4b5ebdd154 Mon Sep 17 00:00:00 2001 From: jcaiMR <111116206+jcaiMR@users.noreply.github.com> Date: Sat, 17 Dec 2022 00:24:32 +0800 Subject: [PATCH] fix handleSwssNotification crash in dhcp6relay (#28) --- src/configInterface.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/configInterface.cpp b/src/configInterface.cpp index 32f715c..d0801af 100644 --- a/src/configInterface.cpp +++ b/src/configInterface.cpp @@ -23,10 +23,6 @@ void initialize_swss(std::unordered_map &vlans) swss::SubscriberStateTable ipHelpersTable(configDbPtr.get(), "DHCP_RELAY"); swssSelect.addSelectable(&ipHelpersTable); get_dhcp(vlans, &ipHelpersTable, false); - struct swssNotification test; - test.vlans = vlans; - test.ipHelpersTable = &ipHelpersTable; - mSwssThreadPtr = std::make_shared (&handleSwssNotification, test); } catch (const std::bad_alloc &e) { syslog(LOG_ERR, "Failed allocate memory. Exception details: %s", e.what());