From 27b29e3723a5ef06505f29b14cc48acd77b337e6 Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Fri, 22 Jun 2018 12:07:52 -0700 Subject: [PATCH] Fix double freeing bug in fdb event handler (#525) --- orchagent/fdborch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchagent/fdborch.cpp b/orchagent/fdborch.cpp index cffdbdb54815..7d265d353775 100644 --- a/orchagent/fdborch.cpp +++ b/orchagent/fdborch.cpp @@ -352,9 +352,9 @@ void FdbOrch::doTask(NotificationConsumer& consumer) } this->update(fdbevent[i].event_type, &fdbevent[i].fdb_entry, oid); - - sai_deserialize_free_fdb_event_ntf(count, fdbevent); } + + sai_deserialize_free_fdb_event_ntf(count, fdbevent); } }