aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/core/forwarder.c
diff options
context:
space:
mode:
authorJordan Augé <jordan.auge+fdio@cisco.com>2021-01-19 17:32:41 +0100
committerJordan Augé <jordan.auge+fdio@cisco.com>2021-01-19 17:39:10 +0100
commit3e88e40270de4a272b17ccea4db35722a30d98a3 (patch)
tree001fd7abc05c3bb10ce5958d9f97d327710f5c44 /hicn-light/src/hicn/core/forwarder.c
parentf576bb657068397d7b536acd4199572e24afc613 (diff)
[HICN-668] Fix various leaks across codebase
Change-Id: I0d2e9846ebb9f784220de78d6103295c19d73409 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/core/forwarder.c')
-rw-r--r--hicn-light/src/hicn/core/forwarder.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/core/forwarder.c b/hicn-light/src/hicn/core/forwarder.c
index f7b0af2c2..94e8cc885 100644
--- a/hicn-light/src/hicn/core/forwarder.c
+++ b/hicn-light/src/hicn/core/forwarder.c
@@ -412,6 +412,14 @@ void forwarder_Receive(Forwarder *forwarder, Message *message) {
forwarder->connectionTable, message_GetIngressConnectionId(message));
if (!conn) {
+ /*
+ * Drop is a static method in messageProcessor which might or might not need
+ * to be called for accounting purposes. This call was initially absent so
+ * the behaviour was kept like this, as this situation is unlikely. We need
+ * to release memory though, as this is not done in Drop anyways.
+ */
+ //messageProcessor_Drop(forwarder->processor, message);
+ message_Release(&message);
return;
}