Skip to content

Commit 27b29e3

Browse files
pavel-shirshovlguohan
authored andcommitted
Fix double freeing bug in fdb event handler (sonic-net#525)
1 parent 98ad0bd commit 27b29e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchagent/fdborch.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ void FdbOrch::doTask(NotificationConsumer& consumer)
352352
}
353353

354354
this->update(fdbevent[i].event_type, &fdbevent[i].fdb_entry, oid);
355-
356-
sai_deserialize_free_fdb_event_ntf(count, fdbevent);
357355
}
356+
357+
sai_deserialize_free_fdb_event_ntf(count, fdbevent);
358358
}
359359
}
360360

0 commit comments

Comments
 (0)