Blob Blame History Raw
From: Bogdan-Andrei Iancu <bogdan@opensips.org>
Date: Mon, 5 Feb 2018 19:35:00 +0200
Subject: [PATCH] Fixed memory leak in TCP reporting via HEP

Free the memory used by the reporting job after the reporting is done.

diff --git a/net/net_tcp_report.c b/net/net_tcp_report.c
index 8a2a5dfec..882226c93 100644
--- a/net/net_tcp_report.c
+++ b/net/net_tcp_report.c
@@ -51,6 +51,8 @@ static void tcp_report_ipc_handler(int sender, void *payload)
 	/* run the report callback  */
 	protos[job->proto].net.report( job->type, job->conn_id, job->conn_flags,
 		job->extra);
+	/* and free the job memory */
+	shm_free(job);
 }