Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix array delete and header guard #1327

Merged
merged 1 commit into from
Jun 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fpmsyncd/fpmlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ FpmLink::FpmLink(unsigned short port) :

FpmLink::~FpmLink()
{
delete m_messageBuffer;
delete[] m_messageBuffer;
if (m_connected)
close(m_connection_socket);
if (m_server_up)
Expand Down
4 changes: 2 additions & 2 deletions mclagsyncd/mclaglink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ MclagLink::MclagLink(int port) :

MclagLink::~MclagLink()
{
delete m_messageBuffer;
delete m_messageBuffer_send;
delete[] m_messageBuffer;
delete[] m_messageBuffer_send;
if (m_connected)
close(m_connection_socket);
if (m_server_up)
Expand Down
2 changes: 2 additions & 0 deletions orchagent/notifications.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

extern "C" {
#include "sai.h"
}
Expand Down
2 changes: 2 additions & 0 deletions orchagent/notifier.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "orch.h"

class Notifier : public Executor {
Expand Down
2 changes: 2 additions & 0 deletions tests/mock_tests/mock_table.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "table.h"

namespace testing_db
Expand Down